Template:LanguageSelector/switch/doc: Difference between revisions
Template page
More actions
mNo edit summary |
mNo edit summary |
||
| Line 6: | Line 6: | ||
|1stat=required | |1stat=required | ||
|2=2 | |2=2 | ||
|2d=''yes'' | |2d=determines what is displayed | ||
|2def= | * '''yes''': icons and text | ||
* '''only''': only icons, no text | |||
* '''code''': English language codes | |||
* '''anything else''': only text, no icons | |||
|2def=code | |||
|2stat=required | |2stat=required | ||
|3=action | |3=action | ||
| Line 20: | Line 24: | ||
|usage-notes= | |usage-notes= | ||
|type= | |type= | ||
|example= | |example=fr | ||
|i18n-method= | |i18n-method= | ||
|i18n-desc= | |i18n-desc= | ||
Revision as of 04:18, 17 July 2010
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
| 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}}
Example
{{LanguageSelector/switch|fr}}
renders as: