Template:Uselangflags

From Valve Developer Community
Jump to: navigation, search
Curly brackets white.pngTemplate Documentation
Icon-translate.png
View
Edit
Page history

Usage

This template is used to switch the uselang parameter (the language of the UI) quickly to support multiple languages on one page without {{doc}} template (its purpose is like {{lang}}). Should use with {{autolang}}.

Note.pngNote:Must be ISO 639 compliant!

Parameters

  • {{{<lang code>}}} - Optional: Specify the lang code to 1 to show the flag of the language. Only work without {{{all-lang}}}. (e.g.|en=1)
  • {{{all-lang}}} - Optional: Show all the flags of the languages.
  • {{{no-right-align}}} - Optional: Make the template to be non-right-align style if it's non-zero.
  • {{{category-en}}} - Optional: Add the page into the Category:English.
  • {{{title}}}, {{{1}}} - Optional: The title of the page.
  • {{{multipageworkaround}}} - Optional: Puts the edit and actions buttons used on {{MultiPage}} next to the flags. This is used on pages that don't work with MultiPage because of too many templates (e.g. List of Team Fortress 2 console commands and variables).
    Icon-Important.pngImportant:Should not be used otherwise!

Examples

{{Uselangflags|all-lang=1|no-right-align=1}}
English (en)català (ca)čeština (cs)Deutsch (de)Esperanto (eo)español (es)eesti (et)hrvatski (hr)suomi (fi)français (fr)magyar (hu)Ελληνικά (el)italiano (it)Nederlands (nl)norsk (no)polski (pl)português (pt)português do Brasil (pt-br)русский (ru)українська (uk)svenska (sv)Türkçe (tr)日本語 (ja)Tiếng Việt (vi)中文 (zh)中文(台灣)‎ (zh-tw)한국어 (ko)ქართული (ka)עברית (he)

{{Uselangflags|en=1|no-right-align=1}}
English (en)

{{Uselangflags|en=1|ca=1|de=1|zh=1|no-right-align=1}}
English (en)català (ca)Deutsch (de)中文 (zh)

See also