Template:Autolang
This template is used on many pages and changes may be widely noticed.
Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage.Consider discussing changes on the talk page before implementing them.
{{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.Contents
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.
{{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
See also
{{Uselangflags}}
{{uilang}}
{{suflang}}
The above documentation is transcluded from Template:Autolang/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this page.