Difference between revisions of "Template:Label/doc"

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
(Update examples, remove notes about syncing with Wikidata:Template:Label and displaying labels in other languages (this template uses a different module and doesn't support language feature))
imported>Zyxw
m (add links)
Line 15: Line 15:
 
== See also ==
 
== See also ==
 
* [[Wikidata:Template:Label]]
 
* [[Wikidata:Template:Label]]
 +
* [[Template:Wikidata entity link]]
 +
* [[Template:Wikidata property link]]
  
 
<includeonly>{{#switch:{{SUBPAGENAME}}|sandbox=|#default=
 
<includeonly>{{#switch:{{SUBPAGENAME}}|sandbox=|#default=
 
[[Category:Wikidata templates]]
 
[[Category:Wikidata templates]]
 
}}</includeonly>
 
}}</includeonly>

Revision as of 04:21, 23 July 2017

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

Usage examples

Standard usage
{{Label|Q5}}Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value).
{{Label|P31}}Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value).
Leading/trailing whitespace
{{Label | Q5 }}Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value).
{{Label | P31 }}Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value).

See also