Template:LangSwitch
Jump to navigation
Jump to search
{{{en}}}
The following template description is not displayed when the template is inserted in an article.
Goal
This template will show texts in different languages depending on the language of the page it is placed on.
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, the English text will be shown instead.
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.
{{LangSwitch |de= |en= |es= |fr= |nl= |ru=}}
{{LangSwitch |de = |en = |es = |fr = |nl = |ru = }}
Supported language codes
ISO 639-1
two letter code |
English name of language |
---|---|
ca | Catalan |
de | German |
en | English |
es | Spanish |
fa | Farsi |
fi | Finnish |
fr | French |
nl | Dutch |
pl | Polish |
pt | Portugese |
ru | Russian |
sv | Swedish |
zh | Chinese |
Known issues
Using equal signs inside template parameters will break the template. Two ways around this is to either use {{=}} or <nowiki>=</nowiki>.
Disclaimer
This template has not been tested in its whole.