Template:Uselangflags/doc: Difference between revisions
(Created page with "{{Doc/subpage}} == Usage == {{autolang||zh={{:User:1416006136/Signature|create=1}}}} {{shortcut|{{tl|link=ulf}}}} {{autolang|This template is used to switch the {{Code|select=...") |
m (Removed chinese translations, gonna move them to their own doc subpage) |
||
Line 3: | Line 3: | ||
{{autolang||zh={{:User:1416006136/Signature|create=1}}}} | {{autolang||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}}. | |||
{{Note | {{Note|Must be [[w:ISO 639|ISO 639]] compliant!}} | ||
<h3>Parameters</h3> | |||
<h3> | *{{param|<lang code>}} - ''Optional:'' Specify the lang code to 1 to show the flag of the language. Only work without {{param|all-lang}}. (e.g.{{para|en|1}}) | ||
*{{param|< | *{{param|all-lang}} - ''Optional:'' Show all the flags of the languages. | ||
*{{param|all-lang}} - | *{{param|no-right-align}} - ''Optional:'' Make the template to be non-right-align style if it's non-zero. | ||
*{{param|no-right-align}} - | *{{param|category-en}} - ''Optional:'' Add the page into the [[:Category:English]]. | ||
*{{param|category-en}} - | *{{param|title}}, {{param|1}} - {''Optional:'' The title of the page. | ||
*{{param|title}}, {{param|1}} - { | |||
<h3>{{autolang|Examples|zh=示例}}</h3> | <h3>{{autolang|Examples|zh=示例}}</h3> | ||
{{Code|<nowiki>{{</nowiki>{{PAGENAME}}<nowiki>|all-lang=1|no-right-align=1}}</nowiki>}} → {{Capsule|style=2|{{ {{PAGENAME}} |all-lang=1|no-right-align=1}}}}<br> | {{Code|<nowiki>{{</nowiki>{{PAGENAME}}<nowiki>|all-lang=1|no-right-align=1}}</nowiki>}} → {{Capsule|style=2|{{ {{PAGENAME}} |all-lang=1|no-right-align=1}}}}<br> | ||
Line 19: | Line 18: | ||
{{Code|<nowiki>{{</nowiki>{{PAGENAME}}<nowiki>|en=1|ca=1|de=1|zh=1|no-right-align=1}}</nowiki>}} → {{Capsule|style=2|{{ {{PAGENAME}} |en=1|ca=1|de=1|zh=1|no-right-align=1}} }}<br> | {{Code|<nowiki>{{</nowiki>{{PAGENAME}}<nowiki>|en=1|ca=1|de=1|zh=1|no-right-align=1}}</nowiki>}} → {{Capsule|style=2|{{ {{PAGENAME}} |en=1|ca=1|de=1|zh=1|no-right-align=1}} }}<br> | ||
<h2> | <h2>See Also</h2> | ||
* {{tl2|autolang}} | * {{tl2|autolang}} | ||
* {{tl2|uselang}} | * {{tl2|uselang}} |
Revision as of 09:17, 15 September 2023

Don't forget to purge the contents of the base page upon creating or editing this subpage.
Usage


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 = 中文(台灣)
}}
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.
This template (and its redirect) is
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
{{#switch: {{language}}
| #default = English
| ja = 日本語
| zh-tw = 中文(台灣)
}}


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 = 中文(台灣)
}}
{{Uselangflags/doc|all-lang=1|no-right-align=1}} →

Don't forget to purge the contents of the base page upon creating or editing this subpage.
Usage


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 = 中文(台灣)
}}
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.
This template (and its redirect) is
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
{{#switch: {{language}}
| #default = English
| ja = 日本語
| zh-tw = 中文(台灣)
}}
{{Uselangflags/doc|all-lang=1|no-right-align=1}} → 

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 = 中文(台灣)
}}
{{Uselangflags/doc|en=1|no-right-align=1}} →
{{Uselangflags/doc|en=1|ca=1|de=1|zh=1|no-right-align=1}} →
See Also
{{Uselangflags/doc|en=1|no-right-align=1}} →

Don't forget to purge the contents of the base page upon creating or editing this subpage.
Usage


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 = 中文(台灣)
}}
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.
This template (and its redirect) is
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
{{#switch: {{language}}
| #default = English
| ja = 日本語
| zh-tw = 中文(台灣)
}}
{{Uselangflags/doc|all-lang=1|no-right-align=1}} → 

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 = 中文(台灣)
}}
{{Uselangflags/doc|en=1|no-right-align=1}} →
{{Uselangflags/doc|en=1|ca=1|de=1|zh=1|no-right-align=1}} →
See Also
{{Uselangflags/doc|en=1|ca=1|de=1|zh=1|no-right-align=1}} →

Don't forget to purge the contents of the base page upon creating or editing this subpage.
Usage


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 = 中文(台灣)
}}
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.
This template (and its redirect) is
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
{{#switch: {{language}}
| #default = English
| ja = 日本語
| zh-tw = 中文(台灣)
}}
{{Uselangflags/doc|all-lang=1|no-right-align=1}} → 

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 = 中文(台灣)
}}
{{Uselangflags/doc|en=1|no-right-align=1}} →
{{Uselangflags/doc|en=1|ca=1|de=1|zh=1|no-right-align=1}} →
See Also
See Also