Template:Language/archives/Autolang: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 31: Line 31:
<h2>{{autolang|Usage|zh-cn=用法}}</h2>
<h2>{{autolang|Usage|zh-cn=用法}}</h2>
<h3>{{autolang|Parameters|zh-cn=参数}}</h3>
<h3>{{autolang|Parameters|zh-cn=参数}}</h3>
*{{param|1}} - {{autolang|(Unnamed parameter) the default value to show (when this language has not translation). It should be in English.|(未命名参数)要显示的默认值(当该语言没有翻译时)。它应该是用英语写的。}}
*{{param|1}} - {{autolang|(Unnamed parameter) the default value to show (when this language has not translation). It should be in English.|zh-cn=(未命名参数)要显示的默认值(当该语言没有翻译时)。它应该是用英语写的。}}
*{{param|<lang code>}} - {{autolang|The value should be the content of this language. See examples for details.|zh-cn=它的值应该是这个语言的内容。参见示例查看详情。}}
*{{param|<lang code>}} - {{autolang|The value should be the content of this language. See examples for details.|zh-cn=它的值应该是这个语言的内容。参见示例查看详情。}}
<h3>{{autolang|Examples|zh-cn=示例}}</h3>
<h3>{{autolang|Examples|zh-cn=示例}}</h3>
{{uselang|en=1|de=1|ja=1|ru=1|zh-cn=1|old-right-align=1|transparent=1|noborder=1}}
{{uselang|en=1|de=1|ja=1|ru=1|zh-cn=1|old-right-align=1|transparent=1|noborder=1}}
The buttons on the right can help you change the language of the UI easily.<br>
{{autolang|The buttons on the right can help you change the language of the UI easily.<br>|zh-cn=右边的按钮可以帮助你更方便地切换 UI 的语言。}}
{{MdCode|<nowiki>{{autolang|Document}}</nowiki>}} → {{autolang|Document}}<br>
{{MdCode|<nowiki>{{autolang|Document}}</nowiki>}} → {{autolang|Document}}<br>
{{MdCode|<nowiki>{{autolang|Document|zh-cn=文档}}</nowiki>}} → {{autolang|Document|zh-cn=文档}}<br>
{{MdCode|<nowiki>{{autolang|Document|zh-cn=文档}}</nowiki>}} → {{autolang|Document|zh-cn=文档}}<br>

Revision as of 07:20, 16 January 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] [edit]
Icon-translate.png Available doc translations

This template was created by DaKang233. Anyone is welcome to add new content or fix errors.


This template can change the content automaticaly according to the language of the UI. Should use with {{uselang}}.

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}}