FANDOM


Template documentation
Languages:
Small-en Small-ja

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=~". LangSwitch templates without an en option will be added to Category:LangSwitch template without English version.
  • 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 Language Brigade
|ca=Brigada d'Idiomes de Wikia
|de=Wikiasprachbrigade
|fr=Brigade des Langues de Wikia
|ja=ウィキア言語ブリゲード
|pl=Brygada Językowa Wiki
|default=Wikia Language Brigade
|lang = {{{lang|}}}
}}
Languages:
Small-en Small-ca Small-de Small-fr Small-ja Small-pl

Wikia Language Brigade

Relies on

See also

End of template documentation
This template may be (partially) invisible. • Edit base documentationEdit English documentation
Community content is available under CC-BY-SA unless otherwise noted.