Template:Language/archives/Autolang: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 14: Line 14:
*{{param|<lang code>}} - {{autolang|The value should be the content of this language. See examples for details.|zh=它的值应该是这个语言的内容。参见示例查看详情。}}
*{{param|<lang code>}} - {{autolang|The value should be the content of this language. See examples for details.|zh=它的值应该是这个语言的内容。参见示例查看详情。}}
<h3>{{autolang|Examples|zh=示例}}</h3>
<h3>{{autolang|Examples|zh=示例}}</h3>
{{Uselangflags|en=1|de=1|ja=1|ru=1|zh=1|old-right-align=1|transparent=1|noborder=1}}
{{Uselangflags|en=1|de=1|ja=1|vi=1|ru=1|zh=1|old-right-align=1|transparent=1|noborder=1}}
{{autolang|The buttons on the right can help you change the language of the UI easily.<br>|zh=右边的按钮可以帮助你更方便地切换 UI 的语言。}}
{{autolang|The buttons on the right can help you change the language of the UI easily.<br>|zh=右边的按钮可以帮助你更方便地切换 UI 的语言。}}



Revision as of 00:47, 23 April 2023

English (en)中文 (zh)
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 {{Uselangflags}}. 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

English (en)Deutsch (de)日本語 (ja)Русский (ru)Tiếng Việt (vi)中文 (zh)

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

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

See Also

  • {{Uselangflags}}
  • {{uilang}}
  • {{suflang}}