Template:LanguageSelector/switch

From "PTTLink Wiki"
< Template:LanguageSelector
Revision as of 08:37, 21 January 2022 by Kg7qin (talk | contribs) (Created page with "{{LanguageSelector/link|1={{{1|}}}|2={{{2|}}}|3={{LanguageSelector/iconfile|1={{{1|}}}}}|action={{{action|}}}}}<noinclude>{{Documentation}}</noinclude>")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Template documentationview · edit · history · purge ]

Selects a default icon.

Usage

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

Template parameters

ParameterDescriptionDefaultStatus
1language codeemptyrequired
2determines what is displayed
  • yes: icons and text
  • only: only icons, no text
  • code: English language codes
  • anything else: only text, no icons
coderequired
actionis passed through to {{LanguageSelector/link}}, and ultimately to {{UselangLink}}.emptyoptional

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}}" ""