Template:LanguageSelector

From Wikimedia Commons, the free media repository
Jump to: navigation, search

This page in other languages : Arabic | Bulgarian | Bangla | Czech | Danish | German | Greek | English | Esperanto | Spanish | Estonian | Finnish | French | Hebrew | Hindi | Hungarian | Indonesian | Italian | Japanese | Colognian | Lithuanian | Latvian | Macedonian | Dutch | Norwegian | Polish | Portuguese | Romanian | Russian | Northern Sami | Tamil | Tagalog | Urdu | Yoruba | French | Chinese | +/−

Documentation icon Documentationviewedithistorypurge

This documentation is transcluded from Template:LanguageSelector/doc.

Displays a configurable set of links that switch the page it's used on to another language. It is intended to complement {{LangSwitch}}, but you might find previously unintended uses. ;)

Usage

{{LanguageSelector |icons= |<unnamed parameters, numbered 2..20>= |notpiol= |action= }}

  • The switch only applies to the page the template is transcluded on, clicking other links will return you to the language set in your MediaWiki preferences. This does not generally apply to script calls, e. g. "hide/show" links, or controls for sortable tables or other embedded stuff.
  • The template can be used inline, it should not break any layout.

Template parameters

Parameter Description Default Status
icons determines what is displayed
  • yes: icons and text
  • only: only icons, no text
  • code: English language codes
  • anything else: only text, no icons
yes optional
<unnamed parameters, numbered 2..20> A language code. If present, a link for the corresponding language will be produced. Up to 19 language codes can currently be specified, and will display in the order indicated by the parameter sequence. If no unnamed parameters are specified, all languages will be displayed in the default order. optional optional
notpiol dummy parameter, if assigned any value, it will suppress the 'This page in other languages: ' text optional optional
action passed through to {{UselangLink}}, read documentation there for further information optional optional

Additional information

The template is intended to be used in the following namespaces: all namespaces

The template is intended to be used by the following user groups: all users

Relies on:

See also

Related templates

Language resources

If you want to add languages, the following resources might be useful

Examples

{{LanguageSelector}} This page in other languages : Arabic | Bulgarian | Bangla | Czech | Danish | German | Greek | English | Esperanto | Spanish | Estonian | Finnish | French | Hebrew | Hindi | Hungarian | Indonesian | Italian | Japanese | Colognian | Lithuanian | Latvian | Macedonian | Dutch | Norwegian | Polish | Portuguese | Romanian | Russian | Northern Sami | Tamil | Tagalog | Urdu | Yoruba | French | Chinese | +/−
{{LanguageSelector|icons=no}} This page in other languages : Arabic | Bulgarian | Bangla | Czech | Danish | German | Greek | English | Esperanto | Spanish | Estonian | Finnish | French | Hebrew | Hindi | Hungarian | Indonesian | Italian | Japanese | Colognian | Lithuanian | Latvian | Macedonian | Dutch | Norwegian | Polish | Portuguese | Romanian | Russian | Northern Sami | Tamil | Tagalog | Urdu | Yoruba | French | Chinese | +/−
{{LanguageSelector|icons=only}} This page in other languages : العربية | Bulgarian | Bangla | Czech | Danish | Deutsch | Greek | English | Esperanto | español | Estonian | Finnish | français | Hebrew | Hindi | Hungarian | Indonesian | Italian | Japanese | Ripoarisch | Lithuanian | Latvian | Macedonian | Dutch | Norwegian | Polish | Portuguese | Romanian | русский | Northern Sami | Tamil | Tagalog | Urdu | Yoruba | français | 中文 | +/−
{{LanguageSelector|icons=code}} This page in other languages : ar | Bulgarian | Bangla | Czech | Danish | de | Greek | en | eo | es | Estonian | Finnish | fr | Hebrew | Hindi | Hungarian | Indonesian | Italian | Japanese | ksh | Lithuanian | Latvian | Macedonian | Dutch | Norwegian | Polish | Portuguese | Romanian | ru | Northern Sami | Tamil | Tagalog | Urdu | Yoruba | fr | zh | +/−
{{LanguageSelector|zh|de}} This page in other languages : Chinese | German
{{LanguageSelector|zh|de|w33}} This page in other languages : Chinese | German | w33
{{LanguageSelector|zh|de|w33|icons=code}} This page in other languages : zh | de | w33
{{LanguageSelector|zh|de|en}} This page in other languages : Chinese | German | English
{{LanguageSelector|invalid}} This page in other languages : invalid
{{LanguageSelector|notpiol=1|es|fr|zh}} Spanish | French | Chinese
{{LanguageSelector|notpiol=1|icons=only}} العربية | Bulgarian | Bangla | Czech | Danish | Deutsch | Greek | English | Esperanto | español | Estonian | Finnish | français | Hebrew | Hindi | Hungarian | Indonesian | Italian | Japanese | Ripoarisch | Lithuanian | Latvian | Macedonian | Dutch | Norwegian | Polish | Portuguese | Romanian | русский | Northern Sami | Tamil | Tagalog | Urdu | Yoruba | français | 中文 | +/−
{{LanguageSelector|zh|de|action=edit}} This page in other languages : Chinese | German