Difference between revisions of "Template:Translation switching"

From Team Fortress Wiki
Jump to: navigation, search
m (Reverted edits by Smashman (Talk) to last revision by Seb26)
Line 6: Line 6:
 
   | 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].<br />'''Supported languages for this template''': {{{1|none}}}&nbsp;([{{fullurl:Template:{{BASEPAGENAME}}|action=edit}} add])
 
   | 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].<br />'''Supported languages for this template''': {{{1|none}}}&nbsp;([{{fullurl:Template:{{BASEPAGENAME}}|action=edit}} add])
 
   }}
 
   }}
}}<includeonly>[[Category:Templates that use translation switching|{{PAGENAME}}]]</includeonly><noinclude>
+
}}<includeonly>[[Category:Templates that use translation switching|{{PAGENAME}}]]<!--
 +
 
 +
  // If no languages are listed, place the page in a category. If languages listed is "en", "none", etc, also add the category.
 +
  -->{{#if:{{{1|}}}
 +
| {{#switch:{{lc:{{{1|}}}}}
 +
| blank
 +
| none
 +
| en
 +
| n/a
 +
| none = [[Category:Templates requiring translation|{{PAGENAME}}]]
 +
| #default = <!-- NULL -->
 +
}}
 +
| [[Category:Templates requiring translation|{{PAGENAME}}]]
 +
}}</includeonly><noinclude>
  
 
* 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.  
 
* 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: {{tlx|translation switching|de, fr, ja, pl}}
 
* Display the languages supported by the template by using this code: {{tlx|translation switching|de, fr, ja, pl}}
 
* It will categorize them into [[:Category:Templates that use translation switching]].
 
* 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]].
  
 +
[[Category:Language templates|Translation switching]]
 
[[Category:Maintenance templates|Translation switching]]
 
[[Category:Maintenance templates|Translation switching]]
 
</noinclude>
 
</noinclude>

Revision as of 10:23, 30 September 2010