Template:Wikidata ID
Jump to navigation
Jump to search
Usage[edit source]
This template fetches an identifier property from Wikidata and formats it as a URL. Use as for example:
{{Wikidata ID|P3634|P350|qid=Q19912922}}
which returns:
- [Lua error in Module:Wd at line 162: attempt to index field 'wikibase' (a nil value). Lua error in Module:WikidataIB at line 533: attempt to index field 'wikibase' (a nil value).: {{#Property:P350|from=Q19912922 }}]
[Lua error in Module:Wd at line 162: attempt to index field 'wikibase' (a nil value). Lua error in Module:WikidataIB at line 533: attempt to index field 'wikibase' (a nil value).: {{#Property:P3634|from=Q19912922 }}]
If you want to hide the ID, then use:
{{Wikidata ID|P350|P3634|qid=Q19912922|showid=no}}
which returns:
- [Lua error in Module:Wd at line 162: attempt to index field 'wikibase' (a nil value). Lua error in Module:WikidataIB at line 533: attempt to index field 'wikibase' (a nil value).]
[Lua error in Module:Wd at line 162: attempt to index field 'wikibase' (a nil value). Lua error in Module:WikidataIB at line 533: attempt to index field 'wikibase' (a nil value).]
Ordering is new lines by default, but you can change it to commas using:
{{Wikidata ID|P350|P3634|qid=Q19912922|separator=comma}}
which returns:
- [Lua error in Module:Wd at line 162: attempt to index field 'wikibase' (a nil value). Lua error in Module:WikidataIB at line 533: attempt to index field 'wikibase' (a nil value).: {{#Property:P350|from=Q19912922 }}], [Lua error in Module:Wd at line 162: attempt to index field 'wikibase' (a nil value). Lua error in Module:WikidataIB at line 533: attempt to index field 'wikibase' (a nil value).: {{#Property:P3634|from=Q19912922 }}]
External links[edit source]
- Template:Wikidata ID at Wikipedia, the free Terran-based encyclopedia that anyone can edit.
The above documentation is transcluded from Template:Wikidata ID/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |