Template:LangSwitch

{{Informative template|1=

Goal
This template will show texts in different languages depending on the language of the page it is placed on.

It is mainly meant for translation of contents within templates so that a single template can be used in pages of different languages, rather than having to be translated with one template for each language.

The language the text will be shown in depends on the two letter language code between the page namespace and the page title, for example Talk:De/HB Radio-NAV. If a parameter with a text is not available in the language of the page or is empty, the English text will be shown instead provided it is available.

Usage
The parameters of this template corresponds to the ISO 639-1 two letter language code for the language to be used in that parameter.

For testing and demonstration purposes the named parameter lang= can be used to select a different language than the language of the page the template is used on.

Translating templates
The template is mainly used for translating templates.

Do note that many templates are based on tables and have to start from the beginning of the line, which is accomplished like in the below example, and that inserting blank lines will alter the way the template is rendered.

Using the lang parameter
For testing and demonstration purposes the the lang  parameter can be used to override the automatic language selection.

Known issues
Using equal signs inside template parameters will break the template. Two ways around this is to either use = or &lt;nowiki&gt;=&lt;/nowiki&gt;.

Related content

 * Help:Templates
 * Category:Language templates

}}