Template:Label
This template displays the label (name) of a Wikidata entity (item or property) in the requested language, generally with a link for more information.
Usage
{{Label |1= |2= |link= |capitalization= }}
Template parameters
Parameter | Description | Default | Status | |
---|---|---|---|---|
1 item | item | Identifier of a Wikidata entity, in the form letter + number. The letter is "Q" for items ("Q-items") or "P" for properties. For example, "Q97" for the Atlantic ocean's item. | 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 | target | Link destination: wikipedia will try to link to Wikipedia (does not work for properties) wikidata to Wikidata commons to Commons (does not work for properties) - (or no) means no link. The template first tries to link to the requested destination, then tries linking to Wikipedia if that is not possible, and if that is also not possible will ultimately fall back 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 | set to 1 to display item ID after the label | 0 | optional |
<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 displays the label (name) of a Wikidata entity (item or property) in the requested language, generally with a link for more information.
|
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
Examples
Items
Localization: |
Capitalization:
|
Linking:
|
Properties
{{label|P17}}
: country{{label|P17|link=-}}
: country
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).
- Template:Multilingual link – allows to indicate names of versions of same Wikipedia article in many languages and displays one link in interface language.