Difference between revisions of "Template:Label/doc"

From blackwiki
Jump to navigation Jump to search
imported>Uzume
imported>Vanisaac
m (→‎See also: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
 
Line 26: Line 26:
 
* [[c:Template:Label]]
 
* [[c:Template:Label]]
  
<includeonly>{{#switch:{{SUBPAGENAME}}|sandbox=|#default=
+
<includeonly>{{Sandbox other||
 
[[Category:Wikidata templates]]
 
[[Category:Wikidata templates]]
 
}}</includeonly>
 
}}</includeonly>

Latest revision as of 23:24, 25 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