Template:Language/archives/Autolang
From Valve Developer Community
< Template:Language (Redirected from Template:Autolang)
Jump to navigation
Jump to search
Red x.png
This template (and its redirect) is Wikipedia icon Deprecated . Its use is not recommended and its functionality may be compromised.
You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion.
Additional notes:
Use #switch parser function instead. Example
You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion.
Additional notes:
Use #switch parser function instead. Example
{{#switch: {{language}}
| #default = English
| ja = 日本語
| zh-tw = 中文(台灣)
}} 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)
English (en) English
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.
- {{{int}}} - The template should decide the language according to the interface language instead of page language if enbaled.
Examples
The buttons on the right can help you change the language of the UI easily.
{{#switch: {{intlang}}|#default = Document}} → Document
{{#switch: {{intlang}}|#default = Document|zh=文档}} → Document
{{#switch: {{intlang}}|#default = Document|ru=документ|zh=文档|de=Dokument|ja=文書|fr=Document|vi=Tài liệu}} → Document
{{#switch: {{intlang}}
| #default = Document
| ru = документ
| zh = 文档
| hr = Dokument
| de = Dokument
| ja = 文書
| fr = Document
| vi = Tài liệu
}}
See also
- {{Uselangflags}}
- {{uilang}}
- {{suflang}}
The above documentation is transcluded from Template:Language/archives/Autolang/doc. (Edit | Page history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.