Jump to content
Toggle menu
  • 8 articles
  • 75 files
  • 7 users
  • 37.8K edits
Neodyland Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.
Revision as of 19:05, 20 August 2009 by commons>84user (+more examples, using '''lang''')

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 =
}}

Click these links to see the action of the lang parameter in different languages: German: deutsch, French: français, Chinese-zh

Examples:


{{LangSwitch
|de=Zeichenkette
|en=text string
|fr=chaîne de caractères
|zh=字串
}}

What it looks like in your browser:

text string

Examples using parameter lang to default to a specific language:


{{LangSwitch
|lang=de
|de=Zeichenkette nur auf Deutsch
}}

What it looks like in your browser:

LangSwitch Error: no default


{{LangSwitch
|lang=en
|en=text only in English
}}

What it looks like in your browser:

text only in English

Template parameters

ParameterDescriptionDefaultStatus
xxxx can be any number of any supported language codesstring in language xxoptional
langlanguage 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.

Cookies help us deliver our services. By using our services, you agree to our use of cookies.