Difference between revisions of "Template:Translation switching"
m |
|||
Line 4: | Line 4: | ||
| 2 = This template uses [[Help:Translation switching|translation switching]]. The correct language will be displayed automatically. | | 2 = This template uses [[Help:Translation switching|translation switching]]. The correct language will be displayed automatically. | ||
| 3style = font-size: 90%; | | 3style = font-size: 90%; | ||
− | | 3 = Localized versions of this template (e.g. ''Template:{{BASEPAGENAME}}/ru'') are not necessary. Add your translations directly to this template by [{{fullurl:Template:{{BASEPAGENAME}}|action=edit}} editing it].{{#if:{{{2|}}}{{{note| | + | | 3 = Localized versions of this template (e.g. ''Template:{{BASEPAGENAME}}/ru'') are not necessary. Add your translations directly to this template by [{{fullurl:Template:{{BASEPAGENAME}}|action=edit}} editing it].{{#if:{{{2|}}}{{{note|}}} |
| <br />'''Note''': {{{2|{{{note}}}}}} | | <br />'''Note''': {{{2|{{{note}}}}}} | ||
}}<br />'''Supported languages for this template''': {{{1|none}}} ([{{fullurl:Template:{{BASEPAGENAME}}|action=edit}} add]) | }}<br />'''Supported languages for this template''': {{{1|none}}} ([{{fullurl:Template:{{BASEPAGENAME}}|action=edit}} add]) |
Revision as of 22:59, 5 October 2010
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) |
- Place
{{translation switching}}
or{{ts}}
on template documentation pages that use{{lang}}
to switch translations based on the language subpagename. - Display the languages supported by the template by using this code:
{{translation switching|de, fr, ja, pl}}
- It will categorize them into Category:Templates that use translation switching.
- If no languages are defined, this template will categorize the page into Category:Templates requiring translation.
- You can also add a note to the template: e.g.
{{translation switching|de, fr, ja, pl|Only one line needs to be translated.}}