Template:LangSwitch/doc
Template page
More actions
Provides a method to present a string of text selected from an array of many language translations in the language set in the user's preferences or the most appropiate fallback language (as determined by {{GetFallback}}).
Usage
{{LangSwitch
|xx =
}}
Example:
{{LangSwitch
|de=Zeichenkette
|en=text string
|fr=chaîne de caractères
|zh=字串
}}
Template parameters
| Parameter | Description | Default | Status | |
|---|---|---|---|---|
xx | xx can be any number of any supported language codes | string in language xx | optional | |
lang | language code (only needs to be provided if the language shall be fixed and independant from the user's preferences) | value of {{int:Lang}} | optional | |
Additional information
The template is intended to be used in the following namespaces: the Template namespace
The template is intended to be used by the following user groups: no user group specified
Relies on:
{{GetFallback}}, {{GetFallback2}}
See also
Localization
This template is not intended to be localized.