Difference between revisions of "Template:Label"
Jump to navigation
Jump to search
imported>Zyxw (Trim any leading or trailing spaces from unnamed parameter 1 that would prevent template from working as expected.) |
(Undid revision 776639582 by Zyxw (talk) whitespace trimming is now part of Module:Wikibase) |
||
| Line 1: | Line 1: | ||
| − | {{#invoke:Wikibase|label | + | {{#invoke:Wikibase|label|{{{1}}}}}<noinclude>{{documentation}}</noinclude> |
| − | {{ | ||
| − | </noinclude> | ||
Revision as of 20:04, 5 September 2017
Lua error in Module:Wikibase at line 22: attempt to index field 'wikibase' (a nil value).
| This template uses Lua: |
This template gets the label of a Wikidata item or property.
Usage examples
- Standard usage
{{Label}}→ Lua error in Module:Wikibase at line 22: attempt to index field 'wikibase' (a nil value).{{Label|Q5}}→ Lua error in Module:Wikibase at line 22: attempt to index field 'wikibase' (a nil value).{{Label|P31}}→ Lua error in Module:Wikibase at line 22: attempt to index field 'wikibase' (a nil value).
- Leading/trailing white space
{{Label | Q5 }}→ Lua error in Module:Wikibase at line 22: attempt to index field 'wikibase' (a nil value).{{Label | P31 }}→ Lua error in Module:Wikibase at line 22: attempt to index field 'wikibase' (a nil value).
- Lower case
{{Label | q5 }}→ Lua error in Module:Wikibase at line 22: attempt to index field 'wikibase' (a nil value).{{Label | p31 }}→ Lua error in Module:Wikibase at line 22: attempt to index field 'wikibase' (a nil value).
See also
{{LinkedLabel}}{{Wikidata entity link}}{{Wikidata property link}}{{#invoke:Wikidata label|getLabel}}- d:Template:Label
- c:Template:Label
| The above documentation is transcluded from Template:Label/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |