Template:Language/archives/Autolang: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 37: Line 37:
{{MdCode|<nowiki>{{autolang|Document|zh-cn=文档}}</nowiki>}} → {{autolang|Document|zh-cn=文档}}<br>
{{MdCode|<nowiki>{{autolang|Document|zh-cn=文档}}</nowiki>}} → {{autolang|Document|zh-cn=文档}}<br>
{{MdCode|<nowiki>{{autolang|Document|ru=документ|zh-cn=文档|de=Dokument|ja=文書|fr=Document}}</nowiki>}} → {{autolang|Document|ru=документ|zh-cn=文档|de=Dokument|ja=文書|fr=Document}}<br>
{{MdCode|<nowiki>{{autolang|Document|ru=документ|zh-cn=文档|de=Dokument|ja=文書|fr=Document}}</nowiki>}} → {{autolang|Document|ru=документ|zh-cn=文档|de=Dokument|ja=文書|fr=Document}}<br>
== See Also ==
*{{tl|uselang}}
*{{tl|uilang}}
}}
}}

Revision as of 04:20, 2 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 can change the content according to the language of the UI.

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 is the content of this language. See examples for details.

Examples

The button on the right can help you can 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}}