Template:Label
- العربية
- الدارجة
- অসমীয়া
- Asturianu
- Башҡортса
- Basa Bali
- Беларуская
- Беларуская (тарашкевіца)
- Български
- भोजपुरी
- বাংলা
- Català
- 閩東語 / Mìng-dĕ̤ng-ngṳ̄
- Нохчийн
- کوردی
- Corsu
- Čeština
- Cymraeg
- Dansk
- Ελληνικά
- English
- Esperanto
- Español
- Euskara
- فارسی
- Suomi
- Français
- گیلکی
- ગુજરાતી
- 客家語 / Hak-kâ-ngî
- Magyar
- Հայերեն
- Bahasa Indonesia
- Ilokano
- Italiano
- 日本語
- Jawa
- 한국어
- Kurdî
- Ligure
- Мокшень
- Македонски
- മലയാളം
- मराठी
- မြန်မာဘာသာ
- مازِرونی
- Nederlands
- Norsk nynorsk
- Norsk
- Occitan
- ଓଡ଼ିଆ
- Ирон
- ਪੰਜਾਬੀ
- Português
- Română
- Tarandíne
- Русский
- Scots
- ၽႃႇသႃႇတႆး
- සිංහල
- Simple English
- Slovenščina
- Shqip
- Српски / srpski
- Svenska
- தமிழ்
- తెలుగు
- Тоҷикӣ
- ไทย
- Tagalog
- Татарча / tatarça
- Українська
- اردو
- Vèneto
- Tiếng Việt
- Yorùbá
- 中文
- 閩南語 / Bân-lâm-gú
- 粵語
Appearance
From Meta, a Wikimedia project coordination wiki
This template returns the label for a particular entity (item or property), using Module:Wikidata label.
Usage
{{Label |1= |2= |link= |capitalization= }}
{{LabelT |1= |link= |capitalization= }}
displays the label in page language. You should use {{LabelT}} in translatable pages.
Template parameters
Parameter | Description | Default | Status | |
---|---|---|---|---|
1 item | item | Wikidata item ID number in form "Q" + item number. Also works with Wikidata properties if you use "P"+number. | empty | required |
2 lang | language | Language code (e.g. en , pt-br , etc.) | empty | optional |
link | link | link type: wikipedia will try to link to Wikipedia (does not work for properties) wikidata to Wikidata wikidata talk to Wikidata talk page 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. | - | optional |
capitalization | capitalization | can be: uc: upper case lc: lower case ucfirst: upper case for the first letter lcfirst: lower case for the first letter 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 |
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
Localization
This template is not intended to be localized.
You can use {{LabelT}} to use page language by default for displaying the label.
Examples
Example 1
{{label|Q1}}
: Universe (in user interface language){{labelT|Q1}}
: Universe (in page language){{label|Q1|en}}
: Universe{{label|Q1|ar}}
: فضاء كوني{{label|Q1|he}}
: היקום{{label|Q1|zh}}
: 宇宙{{label|Q97|capitalization=none}}
: Atlantic Ocean{{label|Q97|capitalization=uc}}
: ATLANTIC OCEAN{{label|Q97|capitalization=lc}}
: atlantic ocean{{label|Q97|capitalization=ucfirst}}
: Atlantic Ocean{{label|Q97|capitalization=lcfirst}}
: atlantic Ocean{{label|Q5|link=wikidata}}
: Atlantic Ocean{{label|Q5|link=commons}}
: Atlantic Ocean{{label|Q5|link=-}}
: Atlantic Ocean{{label|P17}}
: country{{label|P17|link=-}}
: country
Example 2
- Universe (Q1)
{{Label | Q1 }}
→ Universe{{Label | Q1 | en }}
→ Universe{{Label | Q1 | es }}
→ Universo{{Label | Q1 | ru }}
→ Вселенная{{Label | Q1 | ja }}
→ 宇宙- {{{}}}
{{Label | P31 }}
→ instance of{{Label | P31 | en }}
→ instance of{{Label | P31 | es }}
→ instancia de{{Label | P31 | ru }}
→ это частный случай понятия{{Label | P31 | ja }}
→ 分類- {{{}}}
{{Label | Property:P279 }}
→ subclass of{{Label | Property:P279 | en }}
→ subclass of{{Label | Property:P279 | es }}
→ subclase de{{Label | Property:P279 | ru }}
→ подкласс от{{Label | Property:P279 | ja }}
→ 上位クラス
See also
The above documentation is transcluded from Template:Label/doc. (edit | history)
Editors can experiment in this template’s sandbox (create | mirror) and testcases (create) pages.
Please add categories to the /doc subpage. Subpages of this template.
Editors can experiment in this template’s sandbox (create | mirror) and testcases (create) pages.
Please add categories to the /doc subpage. Subpages of this template.