Template:Language/archives/Uilang: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(faster and generally better version of template. easier on the eyes too. I got rid of arabic, but there are no pages in arabic on this site.)
No edit summary
Line 35: Line 35:
}}
}}
</includeonly></onlyinclude>
</includeonly></onlyinclude>
{{documentation|content=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.
{{doc}}
== Usage ==
=== Parameters ===
*{{param|1}} - ''Optional:'' The content to append before the language code. See also examples to understand it better.
=== 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.'''}}
== See Also ==
*{{tl|doc}}
*{{tl|autolang}}
*{{tl|Uselangflags}}
*{{tl|suflang}}
}}
[[Category:English]][[Category:Templates]][[Category:Translation templates]]
[[Category:English]][[Category:Templates]][[Category:Translation templates]]

Revision as of 13:17, 22 February 2023

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)
Curly brackets white.pngTemplate Documentation [view] [create]
Icon-translate.png Available doc translations
Info.png
The Template:Language/archives/Uilang/doc documentation page does not exist.
English documentation will be displayed instead, which you can translate using Google Translate (or similar software). If there is nothing after this message, most likely the documentation does not exist even in English.
Template:Language/archives/Uilang/doc