Template:LangSwitch
More actions
English • čeština • Deutsch • español • français • italiano • 日本語 • 한국어 • polski • português • português do Brasil • русский • ไทย • Türkçe • українська • Tiếng Việt • 中文(简体) • 中文(繁體)
The {{LangSwitch}} template displays available languages for a page. It should be placed at the top of an article.
This template uses {{LangSwitch/core}} for the logic.
Usage
Simply add {{LangSwitch}}. There are no parameters.
English • čeština • Deutsch • español • français • italiano • 日本語 • 한국어 • polski • português • português do Brasil • русский • ไทย • Türkçe • українська • Tiếng Việt • 中文(简体) • 中文(繁體)
Adding new languages
To add a new language, edit the template and add {{LangSwitch/core|xx|xx}} to the desired position (keeping it alphabetical). xx should be replaced by the language code and is used for the link. Xx should be replaced by the language code with the appropriate script and is the text that will be displayed on the page.
The language code for the new language will also need to be added to {{Language code}}.
How to translate
This template doesn't need to/shouldn't be translated, but you can translate the documentation of this template with the following steps:
- Create a subpage of this template with the language code of the language you want to translate to.
- Copy the code wrapped in the
<noinclude>tag in this template into the page you created.{{Translation guide}}template should be removed from the translated documentation.
- Translate the page according to the translation requirements of normal pages.