Template:LocSwitch: Difference between revisions
From Heroes of Might and Magic: Olden Era Official Wiki
No edit summary |
No edit summary |
||
| Line 11: | Line 11: | ||
| {{{en|{{{1}}}}}} | | {{{en|{{{1}}}}}} | ||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
'''Localization Switch''' is a template for simplified implementation of a switch | '''Localization Switch''' is a template for simplified implementation of a switch, which automatically detects a language subpage and selects the appropriate line of text. It is recommended to use this template only for creating other templates. | ||
===Use=== | ===Use=== | ||
; Horizontal layout | ; Horizontal layout | ||
| Line 29: | Line 29: | ||
|zh-hant= | |zh-hant= | ||
}}</nowiki> | }}</nowiki> | ||
* "en" — default option for pages in English (pages that are not language subpages) | |||
* "de" — for /de subpages | |||
* "es" — for /es subpages | |||
* "pt-br" or "pt" or "br" — for /pt-br subpages | |||
* "it" — for /it subpages | |||
* "ja" — for /ja subpages | |||
* "pl" — for /pl subpages | |||
* "ru" — for /ru subpages | |||
* "zh-hans" or "hans" — for /zh-hans subpages | |||
* "zh-hant" or "hant" — for /zh-hant subpages | |||
[[Category:Templates]] | [[Category:Templates]] | ||
Revision as of 01:41, 1 November 2025
Localization Switch is a template for simplified implementation of a switch, which automatically detects a language subpage and selects the appropriate line of text. It is recommended to use this template only for creating other templates.
Use
- Horizontal layout
{{LocSwitch|en=|de=|es=|pt-br=|it=|ja=|pl=|ru=|zh-hans=|zh-hant=}}
- Vertical layout
{{LocSwitch
|en=
|de=
|es=
|pt-br=
|it=
|ja=
|pl=
|ru=
|zh-hans=
|zh-hant=
}}
- "en" — default option for pages in English (pages that are not language subpages)
- "de" — for /de subpages
- "es" — for /es subpages
- "pt-br" or "pt" or "br" — for /pt-br subpages
- "it" — for /it subpages
- "ja" — for /ja subpages
- "pl" — for /pl subpages
- "ru" — for /ru subpages
- "zh-hans" or "hans" — for /zh-hans subpages
- "zh-hant" or "hant" — for /zh-hant subpages


