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.)
 
(10 intermediate revisions by 6 users not shown)
Line 1: Line 1:
<onlyinclude><includeonly>
{{APH}}
<!--argument 1 if the language is not english -->
{{#ifeq:{{int:View}}|View||{{{1|}}}}}<!--
 
-->{{
#switch: {{int:View}}
|#default=unknown
|View=
|Mostra=ca
|Zobrazit=cs
|Lesen=de
|Ver= {{
    #switch: {{int:Permalink}}
    |Enlace permanente=es
    |Hiperligação permanente=pt
    |Ligação permanente=pt-br
    }}
|Vaata=et
|Lire=fr
|Olvasás=hu
|Visualizza=it
|Lezen=nl
|Vis=no
|Podgląd=pl
|Просмотр=ru
|Перегляд=uk
|Visa=sv
|Görüntüle=tr
|閲覧=ja
|查看=zh-cn
|檢視=zh-tw
|보기=ko
|იხილე=ka
|צפייה=he
}}
</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.
== 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]]

Latest revision as of 17:56, 14 August 2024

Note.pngNote:Archived page history
Icon-Important.pngImportant:These pages are linked often from page history logs so Special:WhatLinksHere will not show anything.