Difference between revisions of "Template:Translation switching"

From Team Fortress Wiki
Jump to: navigation, search
m
(trying something.)
Line 1: Line 1:
{{ ambox | style = border: 1px solid #0F5F85; background-color: #DEE8ED; margin: 0.75em 10%; | image = Globeicon.png | imagewidth = 36px | type = notice
+
{{ ambox | type = notice | style = border: 1px solid #0F5F85; background-color: #DEE8ED; margin: 0.75em 0; width:100%;  
| contents = {{ambox/message
+
| image = Globeicon.png | imagewidth = 36px | contents = {{ambox/message
 
   | 2style = font-size: 95%;
 
   | 2style = font-size: 95%;
 
   | 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:{{{1|}}}|<br />'''Supported languages for this template''': {{{1}}}&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}}]]</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: <code><nowiki>{{translation switching|de, fr, ja, pl}}</nowiki></code>
+
* 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]].
  
 
[[Category:Maintenance templates|Translation switching]]
 
[[Category:Maintenance templates|Translation switching]]
 
</noinclude>
 
</noinclude>

Revision as of 10:20, 11 September 2010