Difference between revisions of "Template:Translation switching"

From Team Fortress Wiki
Jump to: navigation, search
m
m
Line 2: Line 2:
 
| contents = {{ambox/message
 
| contents = {{ambox/message
 
   | 2 = This template uses [[Help:Language translation|translation switching]]. The correct language will now be displayed automatically.
 
   | 2 = This template uses [[Help:Language translation|translation switching]]. The correct language will now be displayed automatically.
   | 3 = Localized versions of this template (e.g. ''Template:{{BASEPAGENAME}}/ru'') are no longer necessary. Add your translations directly to this template by [{{fullurl:Template:{{BASEPAGENAME}}|action=edit}} editing this template].{{#if:{{{1|}}}|<br /><span style="font-size: 95%;">'''Supported languages for this template''': {{{1}}}</span>}}
+
   | 3 = Localized versions of this template (e.g. ''Template:{{BASEPAGENAME}}/ru'') are no longer necessary. Add your translations directly to this template by [{{fullurl:Template:{{BASEPAGENAME}}|action=edit}} editing it].{{#if:{{{1|yes}}}|<br /><span style="font-size: 95%;">'''Supported languages for this template''': {{{1}}}&nbsp;([{{fullurl:Template:{{BASEPAGENAME}}|action=edit}} add])</span>}}
 
   }}
 
   }}
 
}}<includeonly>[[Category:Templates that use translation switching|{{PAGENAME}}]]</includeonly><noinclude><br />
 
}}<includeonly>[[Category:Templates that use translation switching|{{PAGENAME}}]]</includeonly><noinclude><br />
  
* Place {{tl|translation switching}} on template documentation pages that use {{tl|lang}} to [[Help:Language translation|switch translations]] based on the language subpagename.  
+
* Place {{tl|translation switching}} or {{tl|ts}} on template documentation pages that use {{tl|lang}} to [[Help:Language translation|switch translations]] based on the language subpagename.  
 +
** Display the languages supported by the template by using this code: <code><nowiki>{{translation switching|de, fr, ja, pl}}</nowiki></code>
 
* It will categorize them into [[:Category:Templates that use translation switching]].
 
* It will categorize them into [[:Category:Templates that use translation switching]].
  
 
[[Category:Maintenance templates|Translation switching]]
 
[[Category:Maintenance templates|Translation switching]]
 
</noinclude>
 
</noinclude>

Revision as of 10:59, 8 August 2010