Template:GetFallback: Difference between revisions
Template page
More actions
m no typing-aid |
m Changed protection level for "Template:GetFallback": downgraded protection level per consensus ([Edit=Allow only template editors and administrators] (indefinite) [Move=Allow only template editors and administrators] (indefinite)) |
||
| (12 intermediate revisions by 8 users not shown) | |||
| Line 1: | Line 1: | ||
{{#switch: {{#if: {{{1|}}} |{{{1}}}|{{int:Lang}}}} | {{#switch: {{#if: {{{1|}}} |{{{1}}}|{{int:Lang}}}} | ||
| af = nl | | af | fy | li | nl-informal | vls | zea = nl | ||
| | | arz = ar | ||
| be-x-old = be-tarask <!-- same language; be-x-old is used on be-x-old.wikipedia but be-tarask is the preferred code --> | |||
| crh-cyrl | crh-latn = crh | | crh-cyrl | crh-latn = crh | ||
| de-formal | de-at | de-ch = de | | ckb | mzn | glk = fa | ||
| als | bar | de-formal | de-at | de-ch | frr | ksh = de | |||
| hif-deva | hif-latn = hif | | hif-deva | hif-latn = hif | ||
| ike-cans | ike-latn = ike | | ike-cans | ike-latn = ike | ||
| kk-arab | kk-cyrl | kk-latn | kk-cn | kk-kz | kk-tr = kk | | kk-arab | kk-cyrl | kk-latn | kk-cn | kk-kz | kk-tr = kk | ||
| ku-latn | ku-arab = ku | | ku-latn | ku-arab = ku | ||
| mg = fr | | mg | br | co | frp | ht | ty | wa = fr | ||
| nds = nds-nl | | nds = nds-nl | ||
| nds-nl | | nds-nl | pdt = nds | ||
| pdt = nds | |||
| pt-br = pt | | pt-br = pt | ||
| ruq-cyrl | ruq-grek | ruq-latn = ruq | | ruq-cyrl | ruq-grek | ruq-latn = ruq | ||
| Line 18: | Line 18: | ||
| tg-cyrl | tg-latn = tg | | tg-cyrl | tg-latn = tg | ||
| tt-cyrl | tt-latn = tt | | tt-cyrl | tt-latn = tt | ||
| zh-cn | zh- | | vec = it | ||
| en-gb | #default = en | | zh | zh-cn | zh-my | zh-sg = zh-hans | ||
| zh-hk | zh-mo | zh-tw = zh-hant | |||
| szl | csb = pl | |||
| en-gb = en | |||
| #default = {{#if: {{{default|}}} | {{{default|}}} | en }} | |||
}}<noinclude> | }}<noinclude> | ||
[[Category:Localisation templates]] | [[Category:Localisation templates]] | ||
{{documentation}} | |||
</noinclude> | </noinclude> | ||
Latest revision as of 03:05, 16 July 2019
en
This documentation is transcluded from Template:GetFallback/doc.
Fallback mechanism part #1. Map:
- af (Afrikaans), fy (Western Frisian), li (Liechtenstein), vls (Vlaams), zea (Zeeuws), nl-informal -> nl (Dutch)
- arz (Egyptian Arabic) -> ar (Arabic)
- be-x-old -> be-tarask (wrong to correct Taraškievica form)
- crh-cyrl , crh-latn -> crh (Crimean Tatar)
- ckb (Sorani) , mzn (Mazandarani), glk (Gilaki) -> fa (Persian)
- als (Alemannic), bar (Bavarian) , de-formal , de-at , de-ch , frr (North Frisian) , ksh (Ripuarian) -> de (German)
- hif-deva , hif-latn -> hif (Fiji Hindi)
- ike-cans , ike-latn -> ike (Eastern Canadian Inuktitut)
- kk-arab , kk-cyrl , kk-latn , kk-cn , kk-kz , kk-tr -> kk (Kazakh)
- ku-latn , ku-arab -> ku (Kurdish)
- mg (Malagasy) , br (Breton), co (Corsican) , frp (Franco-Provençal/Arpitan) , ht (Haitian) , ty (Tahitian), wa -> fr (French)
- nds (Low German) -> nds-nl (Dutch Low Saxon)
- nds-nl(Dutch Low Saxon) , pdt (Plautdietsch) -> nds (Low German)
- be-tarask (Belarusian in Taraskievica orthography) -> be-x-old (Belarusian in Taraskievica orthography)
- be-x-old (Belarusian in Taraskievica orthography) -> be-tarask (Belarusian in Taraskievica orthography)
- pt-br (Brazilian Portuguese) -> pt (Portuguese)
- ruq-cyrl , ruq-grek , ruq-latn -> ruq (Megleno Romanian)
- sr-ec , sr-el -> sr (Serbian)
- tg-cyrl , tg-latn -> tg (Tajik)
- tt-cyrl , tt-latn -> tt (Tatar)
- vec (Venetian) -> it (Italian)
- zh-cn , zh-hans , zh-hant , zh-hk , zh-mo , zh-my , zh-sg , zh-tw -> zh (Chinese)
- szl (Silesian) , csb (Kashubian) -> pl (Polish)
or otherwise return default
Usage
{{GetFallback |1= |default= }}
Should be used only by other templates. Not intended to be used directly.
Template parameters
| Parameter | Description | Default | Status | |
|---|---|---|---|---|
1 | any supported language code | {{int:Lang}} | optional | |
default | default language code returned | en | optional | |
Additional information
The template is intended to be used in the following namespaces: no namespace specified
The template is intended to be used by the following user groups: no user group specified
See also