Difference between revisions of "Template:Label/doc"

From blackwiki
Jump to navigation Jump to search
imported>Uzume
(Lua)
imported>Uzume
Line 19: Line 19:
  
 
== See also ==
 
== See also ==
* [[Wikidata:Template:Label]]
+
* {{tlx|LinkedLabel}}
* [[Template:Wikidata entity link]]
+
* {{tlx|Wikidata entity link}}
* [[Template:Wikidata property link]]
+
* {{tlx|Wikidata property link}}
* [[Module:Wikidata label]]
+
* {{mlx|Wikidata label|getLabel}}
 +
* [[d:Template:Label]]
 +
* [[c:Template:Label]]
  
 
<includeonly>{{#switch:{{SUBPAGENAME}}|sandbox=|#default=
 
<includeonly>{{#switch:{{SUBPAGENAME}}|sandbox=|#default=
 
[[Category:Wikidata templates]]
 
[[Category:Wikidata templates]]
 
}}</includeonly>
 
}}</includeonly>

Revision as of 17:01, 23 April 2020

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

Usage examples

Standard usage
{{Label}}Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value).
{{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 white space
{{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).
Lower case
{{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