قالب: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.

Parameters

Parameter name Description Default value required or optional?

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 | Czech | Danish | German | Greek | English | Esperanto | Spanish | Estonian | Finnish | French | Hebrew | Hindi | Hungarian | Indonesian | Italian | Japanese | Kölsch | Lithuanian | Latvian | مقدونية | Dutch | نرويجية | Polish | برتغالية | Romanian | روسية | Northern Sami | Tamil | Tagalog | أردو | يوروبا | صينية | +/−
{{LanguageSelector|icons=no}}This page in other languages : Arabic | Bulgarian | Czech | Danish | German | Greek | English | Esperanto | Spanish | Estonian | Finnish | French | Hebrew | Hindi | Hungarian | Indonesian | Italian | Japanese | Kölsch | Lithuanian | Latvian | مقدونية | Dutch | نرويجية | Polish | برتغالية | Romanian | روسية | Northern Sami | Tamil | Tagalog | أردو | يوروبا | صينية | +/−
{{LanguageSelector|icons=only}}This page in other languages : العربية | Bulgarian | Czech | Danish | Deutsch | Greek | English | Esperanto | español | Estonian | Finnish | français | Hebrew | Hindi | Hungarian | Indonesian | Italian | Japanese | Ripoarisch | Lithuanian | Latvian | مقدونية | Dutch | نرويجية | Polish | برتغالية | Romanian | русский | Northern Sami | Tamil | Tagalog | أردو | يوروبا | 中文 | +/−
{{LanguageSelector|icons=code}}This page in other languages : ar | Bulgarian | Czech | Danish | de | Greek | en | eo | es | Estonian | Finnish | fr | Hebrew | Hindi | Hungarian | Indonesian | Italian | Japanese | ksh | Lithuanian | Latvian | مقدونية | Dutch | نرويجية | Polish | برتغالية | Romanian | ru | Northern Sami | Tamil | Tagalog | أردو | يوروبا | zh | +/−
{{LanguageSelector|zh|de}}This page in other languages : صينية | German
{{LanguageSelector|zh|de|w33}}This page in other languages : صينية | German | error: w33 not found in ISO 639-1, -2, -2B, -3, -5 list (help)
{{LanguageSelector|zh|de|w33|icons=code}}This page in other languages : zh | de | error: w33 not found in ISO 639-1, -2, -2B, -3, -5 list (help)
{{LanguageSelector|zh|de|en}}This page in other languages : صينية | German | English
{{LanguageSelector|invalid}}This page in other languages : error: invalid not found in ISO 639-1, -2, -2B, -3, -5 list (help)
{{LanguageSelector|notpiol=1|es|fr|zh}}Spanish | French | صينية
{{LanguageSelector|notpiol=1|icons=only}}العربية | Bulgarian | Czech | Danish | Deutsch | Greek | English | Esperanto | español | Estonian | Finnish | français | Hebrew | Hindi | Hungarian | Indonesian | Italian | Japanese | Ripoarisch | Lithuanian | Latvian | مقدونية | Dutch | نرويجية | Polish | برتغالية | Romanian | русский | Northern Sami | Tamil | Tagalog | أردو | يوروبا | 中文 | +/−
{{LanguageSelector|zh|de|action=edit}}This page in other languages : صينية | German

تحذير: مفتاح الترتيب الافتراضي "LanguageSelector" يتجاوز مفتاح الترتيب الافتراضي السابق "LanguageSelector/doc".