From Valve Developer Community
Jump to: navigation, search
This is a documentation subpage for Template:Autolang.
Don't forget to purge the contents of the base page upon creating or editing this subpage.  

This template can change the content automatically according to the language of the page or the interface. Should use with {{Uselangflags}} or {{LanguageBar}}. 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.



  • {{{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.
  • {{{int}}} - The template should decide the language according to the interface language instead of page language if enbaled.


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|int=1|Document}} → Document
{{Autolang|int=1|Document|zh=文档}} → Document
{{Autolang|int=1|Document|ru=документ|zh=文档|de=Dokument|ja=文書|fr=Document|vi=Tài liệu}} → Document

{{Autolang|int=1 | Document | ru = документ | zh = 文档 | hr = Dokument | de = Dokument | ja = 文書 | fr = Document | vi = Tài liệu }}

→ Document (Same as above, but with usage of line breaks and spacing to making it look less messy)

See also