Template:LanguageSelector/switch: Difference between revisions
Template page
More actions
mNo edit summary |
m Tagging this template as uncategorized. |
||
| Line 10: | Line 10: | ||
|en={{LanguageSelector/link|{{{1|}}}|{{{2|}}}|{{LanguageSelector/iconfile|{{{1|}}}}}|action={{{action|}}}}} | |en={{LanguageSelector/link|{{{1|}}}|{{{2|}}}|{{LanguageSelector/iconfile|{{{1|}}}}}|action={{{action|}}}}} | ||
|#default={{LanguageSelector/link|{{{1|{{CONTENTLANGUAGE}}}}}|action={{{action|}}}}} | |#default={{LanguageSelector/link|{{{1|{{CONTENTLANGUAGE}}}}}|action={{{action|}}}}} | ||
}}<noinclude>{{documentation}}</noinclude> | }}<noinclude>{{documentation}}</noinclude><noinclude> | ||
{{Uncategorized|year=2011|month=February|day=27}} | |||
</noinclude> | |||
Revision as of 15:04, 27 February 2011
This documentation is transcluded from Template:LanguageSelector/switch/doc.
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}}
Examples
| Code | Renders as |
|---|---|
"{{LanguageSelector/switch|fr}}"
|
"français" |
"{{LanguageSelector/switch|fr|code}}"
|
"fr]"
|
"{{LanguageSelector/switch|fr|yes}}"
|
" |
"{{LanguageSelector/switch|fr|only}}"
|
" |
"{{LanguageSelector/switch}}"
|
"English" |