Difference between revisions of "Template:Label/doc"
Jump to navigation
Jump to search
imported>Pigsonthewing (not working) |
(remove cats from sandbox) |
||
| Line 11: | Line 11: | ||
The language code parameter does not work yet. It will be optional; if not provided it will default to English. | The language code parameter does not work yet. It will be optional; if not provided it will default to English. | ||
| − | <includeonly> | + | <includeonly>{{#switch:{{SUBPAGENAME}}|sandbox=|#default= |
[[Category:Wikidata templates]] | [[Category:Wikidata templates]] | ||
| − | </includeonly> | + | }}</includeonly> |
Revision as of 22:04, 3 November 2016
| 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|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).
The language code parameter does not work yet. It will be optional; if not provided it will default to English.