Hi fellow wiki editors!

To help newly registered users get more familiar with the wiki (and maybe older users too) there is now a {{Welcome to the wiki}} template. Have a look at it and feel free to add it to new users discussion pages (and perhaps your own).

I have tried to keep the template short, but meaningful. /Johan G

Template:LangSwitch

From FlightGear wiki
Revision as of 19:03, 7 November 2013 by Johan G (Talk | contribs) (Created page with "{{#switch: {{lc: {{#titleparts: {{PAGENAME}} | 1}} }} |ca = {{{ca}}} |de = {{{de}}} |en = {{{en}}} |es = {{{es}}} |fa = {{{fa}}} |fi = {{{fi}}} |fr = {{{fr}}} |nl = {{{nl}}} |...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, 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.

Related category