FANDOM



Template documentation
Note: parts of or entire template might not be visible without values provided.

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 appropriate fallback language (as determined by GetFallback).

Usage

{{LangSwitch
 |en =
 |xx =
 |default =
 |lang = {{{lang|}}}
}}
  • en … Text in English language. Unless default option is used, this text will also be used if the languages provided do not include the language set in the user's preferences. If you do not want to show any text when the user's language is English, then use "en=~".
  • xx … Translated text in language xx (the parameter name xx can be any supported language code, and you can specify as many such parameters as needed for each translated language). Use "~" if you do not want any message (or default) in some specific language.
  • default … Default text in case one of the "xx" languages is not the language of user’s preferences. By default, the English version will be shown, if provided.

Example

{{LangSwitch
|en=Wikia Developers Wiki
|ca=Wikia Developers Wiki CA
|de=Wikia Developers Wiki DE
|fr=Wikia Developers Wiki FR
|ja=Wikia Developers Wiki JA
|pl=Wikia Developers Wiki PL
|default=Wikia Developers Wiki
|lang = {{{lang|}}}
}}

Wikia Developers Wiki

Relies on

See also

Text above can be found here (edit)
Community content is available under CC-BY-SA unless otherwise noted.

Fandom may earn an affiliate commission on sales made from links on this page.

Stream the best stories.

Fandom may earn an affiliate commission on sales made from links on this page.

Get Disney+