Template:Uselangflags/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (→‎Usage: clean up, replaced: See Also → See also)
mNo edit summary
Line 11: Line 11:
*{{param|category-en}} - ''Optional:'' Add the page into the [[:Category:English]].
*{{param|category-en}} - ''Optional:'' Add the page into the [[:Category:English]].
*{{param|title}}, {{param|1}} - ''Optional:'' The title of the page.  
*{{param|title}}, {{param|1}} - ''Optional:'' The title of the page.  
*{{param|multipageworkaround}} - ''Optional:'' Puts the edit and actions buttons used on {{tl2|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]]). {{Important|Should not be used otherwise!}}
<h3>Examples</h3>
<h3>Examples</h3>
{{Code|<nowiki>{{</nowiki>{{ROOTPAGENAME}}<nowiki>|all-lang=1|no-right-align=1}}</nowiki>}} → {{Capsule|style=2|{{ {{ROOTPAGENAME}} |all-lang=1|no-right-align=1}}}}<br>
{{Code|<nowiki>{{</nowiki>{{ROOTPAGENAME}}<nowiki>|all-lang=1|no-right-align=1}}</nowiki>}} → {{Capsule|style=2|{{ {{ROOTPAGENAME}} |all-lang=1|no-right-align=1}}}}<br>

Revision as of 21:10, 15 July 2024

Edit-copy.png
This is a documentation subpage for Template:Uselangflags.
Don't forget to purge the contents of the base page upon creating or editing this subpage.

Usage

Red x.png
This template (and its redirect) is Wikipedia icon Deprecated. Its use is not recommended and its functionality may be compromised.
You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion.

Additional notes:
Use #switch parser function instead. Example
{{#switch: {{language}}
| #default = English
| ja = 日本語
| zh-tw = 中文(台灣)
‎}}

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.

Examples

{{Uselangflags|all-lang=1|no-right-align=1}}

English (en)Deutsch (de)Esperanto (eo)Español (es)Français (fr)Suomi (fi)Hrvatski (hr)Magyar (hu)Italiano (it)日本語 (ja)한국어 (ko)Nederlands (nl)Polski (pl)Português (pt)Português do Brasil (pt-br)Русский (ru)Slovenčina (sk)Svenska (sv)Türkçe (tr)Українська (uk)Tiếng Việt (vi)中文 (zh)中文(臺灣) (zh-tw)


{{Uselangflags|en=1|no-right-align=1}}

English (en)


{{Uselangflags|en=1|ca=1|de=1|zh=1|no-right-align=1}}

English (en)Deutsch (de)中文 (zh)


See also