Template:Q: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
m use language relative parentheses |
Fulfilling edit request by Tacsipacsi |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{label|{{{1|}}}|capitalization={{{capitalization|}}} |show_id=1 |link=wikidata}}<noinclude>{{documentation}}</noinclude> |
|||
<includeonly>{{#ifeq: {{str left|{{{1|}}}|1}} | Q |
|||
| [[{{{1|}}}|{{label|{{{1|}}}}} <small>{{int:parentheses|{{{1|}}}}}</small>]] |
|||
| [[Q{{{1|}}}|{{label|Q{{{1|}}}}} <small>{{int:parentheses|Q{{{1|}}}}}</small>]] |
|||
}}</includeonly><noinclude>{{documentation}} |
|||
<templatedata> |
|||
{ |
|||
"params": { |
|||
"1": { |
|||
"label": { |
|||
"fr": "item", |
|||
"en": "item" |
|||
}, |
|||
"description": { |
|||
"fr": "l'item à afficher", |
|||
"en": "the item to show" |
|||
}, |
|||
"type": "wiki-page-name", |
|||
"required": true, |
|||
"suggested": true |
|||
} |
|||
}, |
|||
"description": { |
|||
"en": "Displays an item label in user language and a link to its wikipage", |
|||
"fr": "Affiche le le label et un lien vers la page d'un item" |
|||
} |
|||
} |
|||
</noinclude> |
Latest revision as of 17:05, 6 July 2020
Usage
{{Q}}
is used to get an automatically localized link to an item; {{QT}}
links to the item's talk page; {{QB}}
links to both. A variety of alternative templates is also available; see list below.
For example:
Q
- {{Q|42}} → Douglas Adams (Q42)
- {{Q|Q42}} → Douglas Adams (Q42)
- {{Q|Q42|capitalization=uc}} → DOUGLAS ADAMS (Q42)
- {{Q|Q42|capitalization=lc}} → douglas adams (q42)
- {{Q|Q42|capitalization=lcfirst}} → douglas Adams (Q42)
QT
- {{QT|42}} → Douglas Adams (Q42)
- {{QT|Q42}} → Douglas Adams (Q42)
- {{QT|Q42|capitalization=uc}} → DOUGLAS ADAMS (Q42)
- {{QT|Q42|capitalization=lc}} → douglas adams (q42)
- {{QT|Q42|capitalization=lcfirst}} → douglas Adams (Q42)
QB
- {{QB|42}} → Douglas Adams (Q42); talk
- {{QB|Q42}} → Douglas Adams (Q42); talk
- {{QB|Q42|capitalization=uc}} → DOUGLAS ADAMS (Q42); talk
- {{QB|Q42|capitalization=lc}} → douglas adams (q42); talk
- {{QB|Q42|capitalization=lcfirst}} → douglas Adams (Q42); talk
TemplateData
This creates a link to an item which includes the label in the user's language in the link text.
Parameter | Description | Type | Status | |
---|---|---|---|---|
item | 1 | The item to show | Page name | required |
capitalization | capitalization | no description | Line | optional |
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}} |
Douglas Adams (English author and humourist (1952–2001)) |
{{Q}} |
Douglas Adams (Q42) | |
{{Q+}} |
Douglas Adams (Q42): English author and humourist (1952–2001) | |
{{Q'}} |
Douglas Adams (Q42) | |
{{Q''}} |
Douglas Adams (Q42) | |
{{Q'''}} |
Douglas Adams (Q42) | |
{{Q!}} |
Douglas Adams (Q42) | |
{{Q*}} |
Douglas Adams (Q42): English author and humourist (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 English) | {{Qen}} |
Douglas Adams(42) |
(Label in French) | {{Qfr}} |
Douglas Adams(42) |
(Label in Italian) | {{Qit}} |
Douglas Adams(42) |
(Label in German) | {{Qde}} |
Douglas Adams(42) |
(Label in Polish) | {{Qpl}} |
Douglas Adams(42) |
(Label in Russian) | {{Qru}} |
Дуглас Адамс(42) |
(Label in Ukrainian) | {{Quk}} |
Дуглас Адамс(42) |
(Label in Spanish) | {{Qes}} |
Douglas Adams(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}} |
Douglas Adams(42) |
The above documentation is transcluded from Template:Q/doc (edit | history). Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) page. Please add categories to the /doc subpage. Subpages of this template. |