Template:Uselangflags/doc: Difference between revisions
Jump to navigation
Jump to search
Note:Must be ISO 639 compliant!
1416006136 (talk | contribs) mNo edit summary |
m (autolang replace) |
||
Line 1: | Line 1: | ||
{{Doc/subpage}} | {{Doc/subpage}} | ||
== Usage == | == Usage == | ||
{{ | {{#switch: {{language}}|#default = |zh={{:User:1416006136/Signature|create=1}}}} | ||
{{shortcut|{{tl|link=ulf}}}} | {{shortcut|{{tl|link=ulf}}}} | ||
This template is used to switch the {{Code|select=1|uselang}} parameter (the language of the UI) quickly to support multiple languages on one page without {{tl2|doc}} template (its purpose is like {{tl2|lang}}). Should use with {{tl2|autolang}}. | This template is used to switch the {{Code|select=1|uselang}} parameter (the language of the UI) quickly to support multiple languages on one page without {{tl2|doc}} template (its purpose is like {{tl2|lang}}). Should use with {{tl2|autolang}}. |
Revision as of 19:04, 5 August 2024

This is a documentation subpage for Template:Uselangflags.
Don't forget to purge the contents of the base page upon creating or editing this subpage.
Don't forget to purge the contents of the base page upon creating or editing this subpage.
Usage
This template is used to switch the uselang parameter (the language of the UI) quickly to support multiple languages on one page without {{doc}} template (its purpose is like {{lang}}). Should use with {{autolang}}.

Parameters
- {{{<lang code>}}} - Optional: Specify the lang code to 1 to show the flag of the language. Only work without {{{all-lang}}}. (e.g.
|en=1
) - {{{all-lang}}} - Optional: Show all the flags of the languages.
- {{{no-right-align}}} - Optional: Make the template to be non-right-align style if it's non-zero.
- {{{category-en}}} - Optional: Add the page into the Category:English.
- {{{title}}}, {{{1}}} - Optional: The title of the page.
Examples
{{Uselangflags|all-lang=1|no-right-align=1}} →
{{Uselangflags|en=1|no-right-align=1}} →

{{Uselangflags|en=1|ca=1|de=1|zh=1|no-right-align=1}} →
See also