Материал из Valve Developer Community
Перейти к навигации
Перейти к поиску
Этот шаблон (с его перенаправлениями) является
устаревшим. Его использование не рекомендуется, а его функциональность может быть нарушена. Вы можете помочь нашим редакторам, заменив или удалив этот шаблон на страницах,
которые его используют. Когда этот шаблон не будет использоваться на страницах, его следует
пометить для удаления.
Дополнительные замечания:Use #switch parser function instead. Example
{{#switch: {{language}}
| #default = English
| ja = 日本語
| zh-tw = 中文(台灣)
}}

Available doc translations
…
РусскийСтраница документации
Template:Language/archives/Autolang/doc/ru не существует.
Вместо неё будет отображена документация на английском. Если после данного сообщения ничего нет, вероятней всего документации не существует даже на английском.
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.
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}} → документ
{{#switch: {{intlang}}
| #default = 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