Jump to content
Toggle menu
  • 8 articles
  • 75 files
  • 7 users
  • 37.8K edits
Neodyland Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:LanguageSelector/switch: Difference between revisions

Template page
m categorize template
No edit summary
Line 1: Line 1:
{{#switch:{{{1|}}}
{{LanguageSelector/link
|ar
|1={{{1|}}}
|de
|2={{{2|}}}
|es
|3={{LanguageSelector/iconfile|1={{{1|}}}}}
|eo
|action={{{action|}}}
|fr
}}<noinclude>{{Documentation}}</noinclude><noinclude>
|ksh
|ru
|zh
|en={{LanguageSelector/link|{{{1|}}}|{{{2|}}}|{{LanguageSelector/iconfile|{{{1|}}}}}|action={{{action|}}}}}
|#default={{LanguageSelector/link|{{{1|{{CONTENTLANGUAGE}}}}}|action={{{action|}}}}}
}}<noinclude>{{documentation}}</noinclude><noinclude>


[[Category:Miscellaneous subtemplates]]
[[Category:Miscellaneous subtemplates]]
</noinclude>
</noinclude>

Revision as of 20:45, 12 July 2020

Template documentation[ view · 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}}" "français [fr]"
"{{LanguageSelector/switch|fr|yes}}" "françaisfrançais"
"{{LanguageSelector/switch|fr|only}}" "français"
"{{LanguageSelector/switch}}" ""
Cookies help us deliver our services. By using our services, you agree to our use of cookies.