Jump to content

Module:Wikidata table/doc

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by RexxS (talk | contribs) at 18:28, 11 February 2021 (add some documentation). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

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