Template:GetFallback2: Difference between revisions
Jump to navigation
Jump to search
Mediawiki>Shirayuki (update Chinese variants) |
Richardpruen (talk | contribs) m (1 revision imported) |
||
Line 1: | Line 1: | ||
{{#switch: {{ | {{#switch: {{#if: {{{1|}}} |{{{1}}}|{{int:Lang}}}} | ||
| nds = de | | nds = de | ||
| nds-nl = nl | | nds-nl = nl | ||
| pdt = de | | pdt = de | ||
| zh-cn | zh-hans | zh-hant | zh-hk | zh-mo | zh-my | zh-sg | zh-tw = zh | |||
| #default = {{#if: {{{default|}}} | {{{default|}}} | en }} | | #default = {{#if: {{{default|}}} | {{{default|}}} | en }} | ||
}}<noinclude> | }}<noinclude> | ||
{{documentation}} | {{documentation}} | ||
[[Category:Localisation templates]] | |||
</noinclude> | </noinclude> |
Revision as of 19:31, 23 November 2021
en
Fallback mechanism part #2. Map:
- nds (Low German) -> de (German)
- nds-nl (Dutch Low Saxon) -> nl (Dutch)
- pdt -> de (German)
or otherwise return default
Usage
{{GetFallback2 |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
⧼Seealso⧽
{{GetFallback}}