Difference between revisions of "Template:Label"
Jump to navigation
Jump to search
imported>Frietjes |
imported>Cabayi (sync with version on wikidata) |
||
| Line 1: | Line 1: | ||
| − | <includeonly>{{#invoke: | + | <includeonly>{{#invoke: Wikidata | getLabel |entity={{{1|}}}|lang={{{2|{{int:lang}}}}}}}</includeonly><noinclude> |
| + | {{documentation}}</noinclude> | ||
Revision as of 07:35, 24 July 2015
| 30px | This template uses Lua: |
This template gets the label of a Wikidata item or property.
Usage examples
- Standard usage
{{Label}}→ Script error: No such module "Wikidata".{{Label|Q5}}→ Script error: No such module "Wikidata".{{Label|P31}}→ Script error: No such module "Wikidata".
- Leading/trailing white space
{{Label | Q5 }}→ Script error: No such module "Wikidata".{{Label | P31 }}→ Script error: No such module "Wikidata".
- Lower case
{{Label | q5 }}→ Script error: No such module "Wikidata".{{Label | p31 }}→ Script error: No such module "Wikidata".
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. |