Template:WD version/sandbox
This is the template sandbox page for Template:WD version (diff). See also the companion subpage for test cases. |
This template uses Lua: |
This produces a citation-like statement for use on Portal and version pages using information from Wikidata.
Parameter | Description | Type | Status | |
---|---|---|---|---|
QID Main | 1 qidmain | The qid number from the main wikidata record. | String | required |
QID Scan | 2 qidscan | The qid number for a Wikidata item with property P996, linking to the scan; this adds a link to Index | String | suggested |
Example
[edit]For a work written by John Napier and a translator William Rae Macdonald
{{WD version|Q107661385|Q107644932}} produces:
The Construction of the Wonderful Canon of Logarithms by John Napier, translated by William Rae Macdonald (1889) (transcription project)
The second parameter is optional, and if present, may even point to the same Wikidata item, as long as the item has property P996 pointing to the file at Commons:
{{WD version|Q107661385}} produces:
The Construction of the Wonderful Canon of Logarithms by John Napier, translated by William Rae Macdonald (1889) (transcription project)
more examples
[edit]The template is fairly flexible for the information it needs and can use and that is available:
- version
* {{WD version|Q106941989}}
* {{WD version|Q19100550}}
- Beauty and the Beast by Gabrielle-Suzanne de Villeneuve, illustrated by Walter Crane (1874)
- "The tale of a youth who set out to learn what fear was" by Brothers Grimm, translated by May Sellar, edited by Andrew Lang, illustrated by Henry Justice Ford, in The Blue Fairy Book (1889)
See Also
[edit]There are versions with each of the people fields excluded, for use on Author pages of the named person:
- {{WD author}}
- {{WD translator}}
- {{WD editor}}
- {{WD illustrator}}