Template:Label
Jump to navigation
Jump to search
Uses Lua: |
This template returns the label for a particular entity (item or property), using Module:Wikidata label.
Usage
{{Label|1=|2=|link=|capitalization=}}
Parameters
Parameter name | Description | Default value | required or optional?
|
---|---|---|---|
parameter #1 (1) | Wikidata item ID number in form "Q" + item number. Also works with Wikidata properties if you use "P"+number. |
empty | required |
parameter #2 (2) | 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 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 | 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 | 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
Examples 1
|
|
|
Examples 2
- Universe (Q1)
{{Label | Q1 }}
→ Universe{{Label | Q1 | en }}
→ Universe{{Label | Q1 | es }}
→ Universo{{Label | Q1 | ru }}
→ Вселенная{{Label | Q1 | ja }}
→ 宇宙
- instance of (P31)
{{Label | P31 }}
→ instance of{{Label | P31 | en }}
→ instance of{{Label | P31 | es }}
→ instancia de{{Label | P31 | ru }}
→ это частный случай понятия{{Label | P31 | ja }}
→ 分類
- subclass of (P279)
{{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
Template | Shorthand | Example |
---|---|---|
{{Autodescription}} |
{{A}} |
totality consisting of space, time, matter and energy |
{{Data}} |
||
{{EntitySchema}} |
{{E}} |
|
{{Label}} |
Douglas Adams | |
{{LinkedLabel}} |
Douglas Adams | |
{{Label and description}} |
{{LD}} |
Q42 (English science fiction writer and humorist (1952–2001)) |
{{Q}} |
Douglas Adams (Q42) | |
{{Q+}} |
Douglas Adams (Q42): English science fiction writer and humorist (1952–2001) | |
{{Q'}} |
Douglas Adams (Q42) | |
{{Q''}} |
Douglas Adams (Q42) | |
{{Q'''}} |
Douglas Adams (Q42) | |
{{Q!}} |
Douglas Adams (Q42) | |
{{Q*}} |
Douglas Adams (Q42): English science fiction writer and humorist (1952–2001) | |
{{QP}} |
instance of (P31) of Douglas Adams (Q42) | |
{{QT}} |
Douglas Adams (Q42) | |
{{Property}} |
{{P}} |
|
{{P'}} |
||
{{PT'}} |
||
{{P+}} |
||
{{Lexeme}} |
{{L}} |
|
{{Claim}} |
{{C}} |
|
{{Statement}} |
{{St}} |
|
{{Statement+}} |
||
{{EzStatement+}} |
||
(Label in Venetian) | {{Qvec}} |
Douglas Adams(42) |
(Label in Taraškievica) | {{Qbe-tarask}} |
Дуглас Адамз(42) |
(Label in English) | {{Qen}} |
Q42(42) |
(Label in French) | {{Qfr}} |
Q42(42) |
(Label in Italian) | {{Qit}} |
Q42(42) |
(Label in German) | {{Qde}} |
Q42(42) |
(Label in Polish) | {{Qpl}} |
Q42(42) |
(Label in Russian) | {{Qru}} |
Дуглас Адамс(42) |
(Label in Ukrainian) | {{Quk}} |
Дуглас Адамс(42) |
(Label in Spanish) | {{Qes}} |
Q42(42) |
(Label in Chinese) | {{Qzh}} |
道格拉斯·亞當斯(42) |
(Label in Shahmukhi) | {{Qpnb}} |
ڈگلس ایڈمس(42) |
(Label in Gurmukhi) | {{Qpa}} |
ਡਗਲਸ ਐਡਮਸ(42) |
(Label in Saraiki) | {{Qskr}} |
ڈگلس ایڈمس(42) |
(Label in Swedish) | {{Qsv}} |
Q42(42) |
The above documentation is transcluded from Template:Label/doc (edit | history). Editors can experiment in this template's sandbox (create | mirror) and testcases (create) page. Please add categories to the /doc subpage. Subpages of this template. |