This is a documentation subpage for Template:Label. It may contain usage information, categories and other content that is not part of the original template page. |
This template doc page is closely interconnected with other templates or pages.
This template may:
You are encouraged to familiarize yourself with its setup, and with related files. If your edit causes unexpected problems, please undo it quickly, as this template may appear on a large number of pages. |
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 "wd".{{Label|Q5}}
→ Script error: No such module "wd".{{Label|P31}}
→ Script error: No such module "wd".
- Leading/trailing white space
{{Label | Q5 }}
→ Script error: No such module "wd".{{Label | P31 }}
→ Script error: No such module "wd".
- Lower case
{{Label | q5 }}
→ Script error: No such module "wd".{{Label | p31 }}
→ Script error: No such module "wd".
See also
{{LinkedLabel}}
{{Wikidata entity link}}
{{Wikidata property link}}
{{Get QID}}
, the inverse template- d:Template:Label
- c:Template:Label