Template:Uilang/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (clean up, replaced: See Also → See also, {{Uselangflags → {{ulf)
Line 4: Line 4:
*{{param|1}} - ''Optional:'' The content to append before the language code. See also examples to understand it better.
*{{param|1}} - ''Optional:'' The content to append before the language code. See also examples to understand it better.
=== Examples ===
=== Examples ===
{{Uselangflags|old-right-align=1|all-lang=1|noborder=1|transparent=1}}{{Code|select=1|<nowiki>{{uilang|/}}</nowiki>}} → {{uilang|/}} {{Note|This will change automaticaly according to your language of UI. Click the flag on the right can change the language quickly. '''The template will return nothing if your language is in English.'''}}
{{ulf|old-right-align=1|all-lang=1|noborder=1|transparent=1}}{{Code|select=1|<nowiki>{{uilang|/}}</nowiki>}} → {{uilang|/}} {{Note|This will change automaticaly according to your language of UI. Click the flag on the right can change the language quickly. '''The template will return nothing if your language is in English.'''}}
== See Also ==
== See also ==
*{{tl|link=doc}}
*{{tl|link=doc}}
*{{tl|link=autolang}}
*{{tl|link=autolang}}
*{{tl|link=Uselangflags}}
*{{tl|link=Uselangflags}}
*{{tl|link=suflang}}
*{{tl|link=suflang}}

Revision as of 04:02, 12 January 2024

This template makes it easy to get the language of the current user, i.e. the language of the UI. The template returns the language code of the user's language. It is useful for supporting multiple languages on one page.

Usage

Parameters

  • {{{1}}} - Optional: The content to append before the language code. See also examples to understand it better.

Examples

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)

{{uilang|/}}

Note.pngNote:Archived page history
Icon-Important.pngImportant:These pages are linked often from page history logs so Special:WhatLinksHere will not show anything.
Note.pngNote:This will change automaticaly according to your language of UI. Click the flag on the right can change the language quickly. The template will return nothing if your language is in English.

See also