Difference between revisions of "Template:Translation switching"
m (sorted user templates) |
m |
||
Line 8: | Line 8: | ||
}}<br />'''Supported languages for this template''': {{{1|none}}} ([{{fullurl:{{#if:{{NAMESPACE}}|{{NAMESPACE}}:}}{{PAGENAME}}|action=edit}} add]) | }}<br />'''Supported languages for this template''': {{{1|none}}} ([{{fullurl:{{#if:{{NAMESPACE}}|{{NAMESPACE}}:}}{{PAGENAME}}|action=edit}} add]) | ||
}} | }} | ||
− | }}<includeonly>{{#ifeq:{{NAMESPACE}}|User|[[Category:User templates | + | }}<includeonly>{{#ifeq:{{NAMESPACE}}|User|[[Category:User templates]]|[[Category:Templates that use translation switching]]}}<!-- |
// If no languages are listed, place the page in a category. If languages listed is "en", "none", etc, also add the category. | // If no languages are listed, place the page in a category. If languages listed is "en", "none", etc, also add the category. |
Revision as of 08:29, 27 September 2015
This template uses translation switching. The correct language will be displayed automatically. Localized versions of this template (e.g. Template:Translation switching/ru) are not necessary. Add your translations directly to this template by editing it. Supported languages for this template: none (add) |
Documentation for Translation switching
This template is used to mark the pages of other templates that use translation switching. Pages are automatically placed into the category Templates that use translation switching to find them later with ease.
Usage
Place {{translation switching}}
(or {{ts}}
) inside the <noinclude>
tags and above the documentation template (either {{doc begin}}
or {{template doc}}
).
- Add the languages supported by the template as part of the first parameter: e.g.
{{translation switching|ar, cs, fr, it, pt, ru}}
- If no languages are added, the template will display "none" and categorize the page into Category:Templates requiring translation.
- Notes can be added also:
{{translation switching|ar, cs, fr, it, pt, ru|Only one line requires translation.}}