Template:Autolang

提供: Valve Developer Community
移動先: 案内検索
English (en)Español (es)Tiếng Việt (vi)中文 (zh)
Curly brackets white.pngTemplate Documentation
Icon-translate.png
Info.png
The Template:Autolang/doc/ja documentation page does not exist.
English documentation will be displayed instead, which you can translate using Google Translate (or similar software). If there is nothing after this message, most likely the documentation does not exist even in English.


This template can change the content automatically according to the language of the UI. Should use with {{Uselangflags}}. The documentation of the template is written by using this template.
Also, if you encounter a bug that the text is missing, use "| 1 = Text" or try to remove atleast one pipe "|" as a workaround.

Usage

Parameters

  • {{{1}}} - (Unnamed parameter) the default value to show (when this language has not translated). 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)Русский (ru)日本語 (ja)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|vi=Tài liệu}} → 文書

{{autolang | Document | ru = документ | zh = 文档 | hr = Dokument | de = Dokument | ja = 文書 | fr = Document | vi = Tài liệu }}
→ 文書 (Same as above, but with usage of line breaks and spacing to making it look less messy)

See also