Difference between revisions of "Template:LanguageSelector/switch/doc"
Jump to navigation
Jump to search
(Created page with "{{LanguageSelector}} {{TemplateBox |1=1 |1d=language code |1def= |1stat=required |2=2 |2d=determines what is displayed * '''yes''': icons and text * '''only''': only icons, no...") |
(No difference)
|
Latest revision as of 08:37, 21 January 2022
| This is a documentation subpage for . It contains usage information, categories and other content that is not part of the original template page. |
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}}"
|
"français" |
"{{LanguageSelector/switch|fr|only}}"
|
"[fr]" |
"{{LanguageSelector/switch}}"
|
"" |