Template:LanguageSelector/doc

From WikiEducator
Jump to: navigation, search

(this part of the documentation is only available in some languages)

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 parameter>=|notpiol=|action=}}

(this part of the documentation is only available in some languages)

A few examples:

{{LanguageSelector}}This page in other languages: EnglishTemplate:LanguageSelector/InterLanguageSpacerDeutschTemplate:LanguageSelector/InterLanguageSpacerfrançaisTemplate:LanguageSelector/InterLanguageSpacer中文Template:LanguageSelector/InterLanguageSpacerالعربيةTemplate:LanguageSelector/InterLanguageSpacerespañolTemplate:LanguageSelector/InterLanguageSpacerрусскийTemplate:LanguageSelector/InterLanguageSpacerEsperantoTemplate:LanguageSelector/InterLanguageSpacerRipoarisch
{{LanguageSelector|icons=no}}This page in other languages: EnglishTemplate:LanguageSelector/InterLanguageSpacerDeutschTemplate:LanguageSelector/InterLanguageSpacerfrançaisTemplate:LanguageSelector/InterLanguageSpacer中文Template:LanguageSelector/InterLanguageSpacerالعربيةTemplate:LanguageSelector/InterLanguageSpacerespañolTemplate:LanguageSelector/InterLanguageSpacerрусскийTemplate:LanguageSelector/InterLanguageSpacerEsperantoTemplate:LanguageSelector/InterLanguageSpacerRipoarisch
{{LanguageSelector|icons=only}}This page in other languages: Template:LanguageSelector/InterLanguageSpacerTemplate:LanguageSelector/InterLanguageSpacerTemplate:LanguageSelector/InterLanguageSpacerTemplate:LanguageSelector/InterLanguageSpacerTemplate:LanguageSelector/InterLanguageSpacerTemplate:LanguageSelector/InterLanguageSpacerTemplate:LanguageSelector/InterLanguageSpacerTemplate:LanguageSelector/InterLanguageSpacer
{{LanguageSelector|icons=code}}This page in other languages: enTemplate:LanguageSelector/InterLanguageSpacerdeTemplate:LanguageSelector/InterLanguageSpacerfrTemplate:LanguageSelector/InterLanguageSpacerzhTemplate:LanguageSelector/InterLanguageSpacerarTemplate:LanguageSelector/InterLanguageSpaceresTemplate:LanguageSelector/InterLanguageSpacerruTemplate:LanguageSelector/InterLanguageSpacereoTemplate:LanguageSelector/InterLanguageSpacerksh
{{LanguageSelector|zh|de}}This page in other languages: 中文Template:LanguageSelector/InterLanguageSpacerDeutsch
{{LanguageSelector|zh|de|w33}}This page in other languages: 中文Template:LanguageSelector/InterLanguageSpacerDeutschTemplate:LanguageSelector/InterLanguageSpacerw33
{{LanguageSelector|zh|de|w33|icons=code}}This page in other languages: zhTemplate:LanguageSelector/InterLanguageSpacerdeTemplate:LanguageSelector/InterLanguageSpacerw33
{{LanguageSelector|zh|de|en}}This page in other languages: 中文Template:LanguageSelector/InterLanguageSpacerDeutschTemplate:LanguageSelector/InterLanguageSpacerEnglish
{{LanguageSelector|invalid}}This page in other languages: invalid
{{LanguageSelector|notpiol=1|es|fr|zh}}españolTemplate:LanguageSelector/InterLanguageSpacerfrançaisTemplate:LanguageSelector/InterLanguageSpacer中文
{{LanguageSelector|notpiol=1|icons=only}}Template:LanguageSelector/InterLanguageSpacerTemplate:LanguageSelector/InterLanguageSpacerTemplate:LanguageSelector/InterLanguageSpacerTemplate:LanguageSelector/InterLanguageSpacerTemplate:LanguageSelector/InterLanguageSpacerTemplate:LanguageSelector/InterLanguageSpacerTemplate:LanguageSelector/InterLanguageSpacerTemplate:LanguageSelector/InterLanguageSpacer
{{LanguageSelector|zh|de|action=action=edit}}This page in other languages: 中文Template:LanguageSelector/InterLanguageSpacerDeutsch
  • 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 (this part of the documentation is only available in some languages) 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 parameter> If present, a link for the corresponding language will be produced. Up to nine languages 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

(this part of the documentation is only available in some languages)

Related templates

Language resources

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