Template:LanguageSelector/switch

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

English

Documentation icon Documentation[view] [edit] [history] [purge]

This documentation is transcluded from Template:LanguageSelector/switch/doc.

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

Selects a default icon.

Usage

{{LanguageSelector/switch |1= |2= |action= }}

Template parameters

Parameter Description Default Status
1 language code empty required
2 determines what is displayed
  • yes: icons and text
  • only: only icons, no text
  • code: English language codes
  • anything else: only text, no icons
code required
action is passed through to {{LanguageSelector/link}}, and ultimately to {{UselangLink}}. empty optional

Additional information

The template is intended to be used in the following namespaces: no namespace specified

The template is intended to be used by the following user groups: no user group specified

Relies on:
{{LanguageSelector/link}}

Examples

Code Renders as
"{{LanguageSelector/switch|fr}}" "French"
"{{LanguageSelector/switch|fr|code}}" "fr"
"{{LanguageSelector/switch|fr|yes}}" "French"
"{{LanguageSelector/switch|fr|only}}" "français"
"{{LanguageSelector/switch}}" "English"