Module:Wikidata table/doc

&#x3c;!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see Wikidata) --&#x3e; This module creates one or more table rows where the data in each cell is taken from Wikidata.

Function makerows
This function is simple and is intended to test performance. It is unsuitable for use in articles. &#x3c;syntaxhighlight lang="moin"&#x3e;

&#x3c;/syntaxhighlight&#x3e;

Function makerow
This function is under development for use in articles. It creates a single table row from one Wikidata entity using a given set of properties. The first cell is the label for the Wikidata entity and it is marked up as a row-header. An "editonwikidata" icon is appended to the first cell. The table caption, column headings and scopes, etc. should be supplied externally. See the examples for more detail. &#x3c;syntaxhighlight lang="moin"&#x3e;

&#x3c;/syntaxhighlight&#x3e;
 * Notes
 * A table cell can be made up of a combination of multiple properties, qualifiers and references.
 * Whitespace is ignored in the list of pids.
 * The separator for cell values is the comma &#x3c;code&#x3e;,&#x3c;/code&#x3e;.
 * Within a cell, multiple properties are separated by the plus sign &#x3c;code&#x3e;+&#x3c;/code&#x3e;.
 * Each property can be separated from one or more qualifiers by a forward-slash &#x3c;code&#x3e;/&#x3c;/code&#x3e;.
 * Each qualifier is separated by a hyphen &#x3c;code&#x3e;-&#x3c;/code&#x3e; (although any punctuation other than &#x3c;code&#x3e;, + /&#x3c;/code&#x3e; will work).