Template:GetFallback/doc
From TDWG Terms Wiki
< Template:GetFallback
Revision as of 09:40, 27 August 2012 by Andreas Plank (Talk | contribs) (Created page with "{{TemplateBox |1=1 |1d=any supported language code |1def=<nowiki>{{int:Lang}}</nowiki> |1stat= |2=default |2d=default language code returned |...")
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)
Usage
{{GetFallback|1=|default=}}
Should be used only by other templates. Not intended to be used directly.
Parameters
Parameter name | Description | Default value | required or optional?
|
---|---|---|---|
parameter #1 (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