Template:Language/archives/Autolang: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 7: Line 7:
-->{{uselang|en=1|zh-cn=1}}
-->{{uselang|en=1|zh-cn=1}}
{{{{autolang|documentation|zh-cn=documentation:zh-cn}}|content=
{{{{autolang|documentation|zh-cn=documentation:zh-cn}}|content=
{{:User:1416006136/Signature|lang={{autolang|en|zh-cn=}}|create=1}}
{{autolang||zh-cn={{:User:1416006136/Signature|create=1}}}}
{{autolang|This template can change the content automaticaly according to the language of the UI. Should use with {{tl|uselang}}. The documentation of the template is written by using this template.|zh-cn=该模板可以根据 UI 语言来自动更改显示的内容。应该与 {{tl|uselang}} 一起使用。模板的文档是使用此模板编写的。}}
{{autolang|This template can change the content automaticaly according to the language of the UI. Should use with {{tl|uselang}}. The documentation of the template is written by using this template.|zh-cn=该模板可以根据 UI 语言来自动更改显示的内容。应该与 {{tl|uselang}} 一起使用。模板的文档是使用此模板编写的。}}
<h2>{{autolang|Usage|zh-cn=用法}}</h2>
<h2>{{autolang|Usage|zh-cn=用法}}</h2>

Revision as of 10:44, 27 January 2023

Template:Uselang

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] [edit]
Icon-translate.png Available doc translations

This template can change the content automaticaly according to the language of the UI. Should use with {{uselang}}. The documentation of the template is written by using this template.

Usage

Parameters

  • {{{1}}} - (Unnamed parameter) the default value to show (when this language has not translation). It should be in English.
  • {{{<lang code>}}} - The value should be the content of this language. See examples for details.

Examples

Template:Uselang The buttons on the right can help you change the language of the UI easily.

{{autolang|Document}} → Document
{{autolang|Document|zh-cn=文档}} → Document
{{autolang|Document|ru=документ|zh-cn=文档|de=Dokument|ja=文書|fr=Document}} → Document

See Also

  • {{uselang}}
  • {{uilang}}