Difference between revisions of "Template:Label"

From blackwiki
Jump to navigation Jump to search
(default to linked page)
(fix default)
Line 1: Line 1:
{{#invoke:Wikibase|label|{{{1|}}}}}<noinclude>{{documentation}}</noinclude>
+
{{#invoke:Wikibase|label{{#if:{{{1|}}}|{{!}}{{{1}}}}}}}<noinclude>{{documentation}}</noinclude>

Revision as of 20:16, 5 September 2017

Lua error in Module:Wikibase at line 22: attempt to index field 'wikibase' (a nil value).

50px Template documentation[view] [edit] [history] [purge]

This template gets the label of a Wikidata item or property.

Usage examples

Standard usage
{{Label}}Lua error in Module:Wikibase at line 22: attempt to index field 'wikibase' (a nil value).
{{Label|Q5}}Script error: The function "label|Q5" does not exist.
{{Label|P31}}Script error: The function "label|P31" does not exist.
Leading/trailing white space
{{Label | Q5 }}Script error: The function "label| Q5" does not exist.
{{Label | P31 }}Script error: The function "label| P31" does not exist.
Lower case
{{Label | q5 }}Script error: The function "label| q5" does not exist.
{{Label | p31 }}Script error: The function "label| p31" does not exist.

See also