Template:GetFallback/doc: Difference between revisions
Template page
More actions
←Created page with '{{TemplateBox |1=1 |1d=any supported language code |1def=<nowiki>{{int:Lang}}</nowiki> |1stat= |2=default |2d=default language code...' |
No edit summary |
||
| Line 9: | Line 9: | ||
|2stat= | |2stat= | ||
|name=GetFallback | |name=GetFallback | ||
|desc=Fallback mechanism part #1. | |desc=Fallback mechanism part #1. Map: | ||
# af , nl-informal -> nl (Dutch) | |||
# arz -> ar | |||
# crh-cyrl , crh-latn -> crh | |||
# ckb , mzn , glk -> fa | |||
# als , bar , de-formal , de-at , de-ch , frr , ksh -> de (German) | |||
# hif-deva , hif-latn -> hif | |||
# ike-cans , ike-latn -> ike | |||
# kk-arab , kk-cyrl , kk-latn , kk-cn , kk-kz , kk-tr -> kk | |||
# ku-latn , ku-arab -> ku | |||
# mg , br , co , frp , ht , ty -> fr (French) | |||
# nds ([[:en:Low German|Low German]]) -> nds-nl ([[:en:Dutch Low Saxon|Dutch Low Saxon]]) | |||
# nds-nl , pdt -> nds ([[:en:Low German|Low German]]) | |||
# pt-br -> pt (Portuguese) | |||
# ruq-cyrl , ruq-grek , ruq-latn -> ruq | |||
# sr-ec , sr-el -> sr | |||
# tg-cyrl , tg-latn -> tg | |||
# tt-cyrl , tt-latn -> tt | |||
# vec -> it (Italian) | |||
# zh-cn , zh-hans , zh-hant , zh-hk , zh-mo , zh-my , zh-sg , zh-tw -> zh | |||
or otherwise return default | |||
|namespace= | |namespace= | ||
|usergroup= | |usergroup= | ||
Revision as of 03:42, 19 April 2011
Fallback mechanism part #1. Map:
- af , nl-informal -> nl (Dutch)
- arz -> ar
- crh-cyrl , crh-latn -> crh
- ckb , mzn , glk -> fa
- als , bar , de-formal , de-at , de-ch , frr , ksh -> de (German)
- hif-deva , hif-latn -> hif
- ike-cans , ike-latn -> ike
- kk-arab , kk-cyrl , kk-latn , kk-cn , kk-kz , kk-tr -> kk
- ku-latn , ku-arab -> ku
- mg , br , co , frp , ht , ty -> fr (French)
- nds (Low German) -> nds-nl (Dutch Low Saxon)
- nds-nl , pdt -> nds (Low German)
- pt-br -> pt (Portuguese)
- ruq-cyrl , ruq-grek , ruq-latn -> ruq
- sr-ec , sr-el -> sr
- tg-cyrl , tg-latn -> tg
- tt-cyrl , tt-latn -> tt
- vec -> it (Italian)
- zh-cn , zh-hans , zh-hant , zh-hk , zh-mo , zh-my , zh-sg , zh-tw -> zh
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