Difference between revisions of "Template:Label/doc"
Jump to navigation
Jump to search
imported>John Vandenberg (start) |
imported>Eyesnore (Lua) |
||
| Line 1: | Line 1: | ||
{{documentation subpage}} | {{documentation subpage}} | ||
| + | {{Lua|Module:Wikibase}} | ||
This template gets the label of an item or property, and should stay in sync with the same template as [[d:Template:Label]]. | This template gets the label of an item or property, and should stay in sync with the same template as [[d:Template:Label]]. | ||
Revision as of 01:16, 14 July 2014
| 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. |
| This template 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:Wd at line 196: attempt to index field 'wikibase' (a nil value).{{label|Q1|en}}: Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value).{{label|Q1|es}}: 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).
The language code parameter does not work yet. It will be optional; if not provided it will default to English.