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
migrating to {{UselangLink}}
No edit summary
 
(13 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<onlyinclude>{{#switch:{{{1}}}
{{LanguageSelector/link|1={{{1|}}}|2={{{2|}}}|3={{LanguageSelector/iconfile|1={{{1|}}}}}|action={{{action|}}}}}<noinclude>{{Documentation}}</noinclude>
|en={{LanguageSelector/link|{{{1}}}|{{{2}}}|English language.svg}}
|de={{LanguageSelector/link|{{{1}}}|{{{2}}}|German-Language-Flag.svg}}
|fr={{LanguageSelector/link|{{{1}}}|{{{2}}}|Flag_of_French_language_(QC-FR).svg}}
|zh={{LanguageSelector/link|{{{1}}}|{{{2}}}|Flag of chinese-speaking countries and territories.svg}}
|ar={{LanguageSelector/link|{{{1}}}|{{{2}}}|Arabic-Language-Flag.svg}}
|es={{LanguageSelector/link|{{{1}}}|{{{2}}}|Idioma Español.svg}}
|ru={{LanguageSelector/link|{{{1}}}|{{{2}}}|Lang-ru.jpg}}
|eo={{LanguageSelector/link|{{{1}}}|{{{2}}}|Flag of Esperanto.svg}}
|ksh={{LanguageSelector/link|{{{1}}}|{{{2}}}|Wappen Koeln.svg}}
|#default={{LanguageSelector/link|{{{1|en}}}}}
}}</onlyinclude>
 
[http://commons.wikimedia.org/w/index.php?title=Template:LanguageSelector/switch&action=purge purge this page]
 
Selects a default icon.
 
<!-- Ok, this behavior can be delegated to an icon selector -->

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.