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
added pass-through parameter "action"
m transfer doc to subpage
Line 1: Line 1:
<onlyinclude>{{#switch:{{{1}}}
{{#switch:{{{1|}}}
|en
|ar
|de
|de
|es
|eo
|fr
|fr
|ksh
|ru
|zh
|zh
|ar
|en={{LanguageSelector/link|{{{1}}}|{{{2}}}|{{LanguageSelector/iconfile|{{{1}}}}}|action={{{action|}}}}}
|es
|ru
|eo
|ksh={{LanguageSelector/link|{{{1}}}|{{{2}}}|{{LanguageSelector/iconfile|{{{1}}}}}|action={{{action|}}}}}
|#default={{LanguageSelector/link|{{{1|{{CONTENTLANGUAGE}}}}}|action={{{action|}}}}}
|#default={{LanguageSelector/link|{{{1|{{CONTENTLANGUAGE}}}}}|action={{{action|}}}}}
}}</onlyinclude>
}}<noinclude>{{documentation}}</noinclude>
 
The optional parameter {{para|action}} is passed through to {{tl|LanguageSelector/link}}, and ultimately to {{tl|UselangLink}}.
 
Selects a default icon.
 
<!-- Ok, this behavior can be delegated to an icon selector -->
 
{{LanguageSelector}}

Revision as of 03:48, 17 July 2010

English

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}}" "English"
Cookies help us deliver our services. By using our services, you agree to our use of cookies.