Template:GetFallback2: Difference between revisions
Jump to navigation
Jump to search
Wikimedia+Commons>4nn1l2 m (Changed protection level for "Template:GetFallback2": downgraded protection level per consensus ([Edit=Allow only template editors and administrators] (indefinite) [Move=Allow only template editors and administrators] (indefinite))) |
Richardpruen (talk | contribs) m (1 revision imported) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{#switch: {{ | {{#switch: {{Uselang|lang={{{1|}}}}} | ||
| nds = de | | nds = de | ||
| nds-nl = nl | | nds-nl = nl | ||
| pdt = de | | pdt = de | ||
| zh-cn | zh- | | gan | gan-hans | ii | wuu | za | zh-cn | zh-my | zh-sg = zh | ||
| ami | cdo | gan-hant | hak | lzh | nan | pwn | szy | tay | trv | zh-classical | zh-hk | zh-min-nan | zh-mo | zh-tw = zh | |||
| #default = {{#if: {{{default|}}} | {{{default|}}} | en }} | | #default = {{#if: {{{default|}}} | {{{default|}}} | en }} | ||
}}<noinclude> | }}<noinclude> | ||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> |
Latest revision as of 20:17, 4 December 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}}