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
mNo edit summary
No edit summary
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{#switch:{{{1|}}}
{{LanguageSelector/link|1={{{1|}}}|2={{{2|}}}|3={{LanguageSelector/iconfile|1={{{1|}}}}}|action={{{action|}}}}}<noinclude>{{Documentation}}</noinclude>
|ar
|de
|es
|eo
|fr
|ksh
|ru
|zh
|en={{LanguageSelector/link|{{{1|}}}|{{{2|}}}|{{LanguageSelector/iconfile|{{{1|}}}}}|action={{{action|}}}}}
|#default={{LanguageSelector/link|{{{1|{{CONTENTLANGUAGE}}}}}|action={{{action|}}}}}
}}<noinclude>{{documentation}}</noinclude>

Latest revision as of 05:03, 13 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.