Module:Wikidata table/doc
Appearance
![]() | This is a documentation subpage for Module:Wikidata table. It may contain usage information, categories and other content that is not part of the original module page. |
This module creates one or more table rows where the data in each cell is taken from Wikidata.
Usage
Function makerows
This function is simple and is intended to test performance. It is unsuitable for use in articles.
{{#invoke:Wikidata table |makerows
|pids= P123, P234, P345, etc. (one property id per column)
|qids = Q12345, Q23456, Q34567, etc. (one entity id per row)
}}
Function makerow
This function is under development for use in articles.
{{#invoke:Wikidata table |makerow
|pids= P123, P234+P345, P456, P567/P580+P582, etc. (see below)
|qid = Q12345 (one entity id for the row)
|c1 = locally supplied value (overrides value from Wikidata for column 1)
|c2 = locally supplied value (overrides value from Wikidata for column 2)
|cN = locally supplied value (overrides value from Wikidata for column N), etc.
}}
- Notes
- The separator for cell values is the comma
,
. - Within a cell, multiple properties are separated by the plus sign
+
. - Each property can be separated from one or more qualifiers by a forward-slash
/
. (not yet implemented)
See also
- Template:Wdtable row – a wrapper template for
makerow
- Template:Wdtable row/lighthouse – a custom wrapper template for
makerow
, hard-coding the pids for lists of lighthouses - Module talk:Wikidata table – testing/examples for
makerow