Template:Language/archives/Autolang

De Valve Developer Community
Ir a la navegación Ir a la búsqueda
English (en)Deutsch (de)Español (es)Hrvatski (hr)Tiếng Việt (vi)中文 (zh)
Red x.png
Esta plantilla (y es redirigir) es Wikipedia icon Obsoleto. Es uso es no recomiendo, y es funcionalidad tal vez comprometido.
Tú puedes ayudar nuestro editores by reemplazandolo o eliminado esta plantilla en la Páginas ese usa esta plantilla. Después toda páginas no usa esta plantilla, por favor marcá lo para elininadando.

Información adicionales:
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)
Curly brackets white.pngDocumentación de las plantillas [ver] [editar] [crear Español (es)]
Icon-translate.png Available doc translations
Info.png
La página de documentación Template:Language/archives/Autolang/doc/es no existe.
La documentación en inglés se mostrará en su lugar, pudiendo usar el traductor de Google (o un software similar) para traducir esta página. Si no aparece nada tras este mensaje, es que la documentación no existe ni en inglés.
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

English (en)Deutsch (de)日本語 (ja)Русский (ru)Tiếng Việt (vi)中文 (zh)

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 }}
→ Document (Same as above, but with usage of line breaks and spacing to making it look less messy)

See also