Difference between revisions of "Template:Label"

From blackwiki
Jump to navigation Jump to search
imported>Frietjes
imported>Cabayi
(sync with version on wikidata)
Line 1: Line 1:
<includeonly>{{#invoke:Wikibase|label|{{{1}}}}}</includeonly><noinclude>{{documentation}}</noinclude>
+
<includeonly>{{#invoke: Wikidata | getLabel |entity={{{1|}}}|lang={{{2|{{int:lang}}}}}}}</includeonly><noinclude>
 +
{{documentation}}</noinclude>

Revision as of 07:35, 24 July 2015

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

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

Usage examples

Standard usage
{{Label}}Script error: No such module "Wikidata".
{{Label|Q5}}Script error: No such module "Wikidata".
{{Label|P31}}Script error: No such module "Wikidata".
Leading/trailing white space
{{Label | Q5 }}Script error: No such module "Wikidata".
{{Label | P31 }}Script error: No such module "Wikidata".
Lower case
{{Label | q5 }}Script error: No such module "Wikidata".
{{Label | p31 }}Script error: No such module "Wikidata".

See also