Template:Label/doc: Difference between revisions
From Bonkipedia
[[mw:]]>Uzume |
ManfredoDo (talk | contribs) m (1 revision imported: Template documentation pages) |
(No difference)
|
Latest revision as of 18:03, 12 November 2022
This is a documentation subpage for Template:Label. It contains usage information, categories and other content that is not part of the original Template page. |
Uses Lua: |
This template gets the label of an item or property, and should stay in sync with the same template as d:Template:Label.
Examples:
{{label|Q1}}
: Lua error in Module:Wikidata_label at line 265: attempt to index field 'wikibase' (a nil value).{{label|Q1|en}}
: Lua error in Module:Wikidata_label at line 283: attempt to index field 'wikibase' (a nil value).{{label|Q1|es}}
: Lua error in Module:Wikidata_label at line 283: attempt to index field 'wikibase' (a nil value).{{label|P31}}
: Lua error in Module:Wikidata_label at line 265: attempt to index field 'wikibase' (a nil value).
The language code parameter is optional; if not provided it will default to the local language.