Template:Label
![]() | Uses Lua: |
This template returns the label for a particular entity (item or property).
Usage
{{Label |1= |2= |link= |capitalization= }}
Template parameters
Parameter | Description | Default | Status | |
---|---|---|---|---|
1 item | item | Q-code number in form "Q" + item number. Also works with Wikidata properties if you use "P"+number. | empty | required |
2 lang | language | Language code (only needs to be provided if the language displayed is to be fixed and independent of the user’s preferences). | empty | optional |
link | link | link type: wikipedia will try to link to Wikipedia (does not work for properties) wikidata to Wikidata commons to Commons (does not work for properties) - means no link. The code will try first the link of your choice then if not possible it will fallback and try linking to Wikipedia, and if that is not possible than to Wikidata. | wikipedia | optional |
capitalization | capitalization | can be: uc: upper case lc: lower case tc: title case or upper case for the first letter of each word ucfirst: upper case for the first letter of the first word lcfirst: lower case for the first letter of the first word none: to leave it as is | none | optional |
show_id | show ID | if set to 1 than item ID will be displayed after the label | none | optional |
Template data | ||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
<templatedata>JSON</templatedata> ./. {{TemplateBox}}
TemplateData is a way to store information about template parameters (the description of those and of the whole template) for both humans and machines. It is used by VisualEditor and possibly other tools like Upload Wizard. Existing template documentation Newly created template documentation and imports Wikipedia's help about TemplateData • Commons-specific information This template returns the label for a particular entity (item or property).
|
Additional information
The template is intended to be used in the following namespaces: all namespaces
The template is intended to be used by the following user groups: all users
Relies on:
Module:Wikidata label
See also
Example
|
|
Related property
Templates linking contents
"1-N" means from one to many.
- Upwards links
- – "Main gallery" link from gallery or category to 1-N main galleries.
- – "Main category" link from gallery or category to 1-N main categories.
- – (box) Alternative "See category" boxed link from gallery to parent category, with explanation of the role of a gallery page.
- Downwards links
- – "Further information" link to 1-N detailed galleries or categories.
- Sideways page links
- – (box or inline) "See also" link to 1-N related pages.
- – "For" a single alternative page with explanation.
- - "For" 1-N alternative pages with one or more explanations.
- – As "For2" with an explanation of the current page.
- - As "For multi" with an explanation of the current page.
- – "Not to be confused with" link to 1-N related pages.
- – (box) Internationalized "See also" (or other caption) to related images.
- – (box) Internationalized with icon-links to related images of the same (medical) case.
- – "See" link from gallery to gallery.
- Sideways category links
- – (box or inline) "See also Categories" link to 1-N related categories.
- – (box or inline) "Not to be confused with categories" link from category with ambiguous names to 1-N unrelated categories.
- Interproject links
- – "Main Wikipedia article" link to 1 article (don't forget the purpose of interwiki links).
- – "See also Wikipedia article" link to 1-N articles (don't forget the purpose of interwiki links).