Difference between revisions of "Template:Translation switching"

From Team Fortress Wiki
Jump to: navigation, search
m
m (works with template-sandbox, but does not work with the template -_-)
 
(4 intermediate revisions by 2 users not shown)
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. ''{{#if:{{NAMESPACE}}|{{NAMESPACE}}:}}{{PAGENAME}}/ru'') are not necessary. Add your translations directly to this template by [{{fullurl:{{#if:{{NAMESPACE}}|{{NAMESPACE}}:}}{{PAGENAME}}|action=edit}} editing it].{{#if:{{{2|}}}{{{note|}}}
 
   | <br />'''Note''': {{{2|{{{note}}}}}}
 
   | <br />'''Note''': {{{2|{{{note}}}}}}
   }}<br />'''Supported languages for this template''': {{{1|none}}}&nbsp;([{{fullurl:{{PAGENAME}}|action=edit}} add])
+
   }}<br />'''Supported languages for this template''': {{{1|none}}}&nbsp;([{{fullurl:{{#if:{{NAMESPACE}}|{{NAMESPACE}}:}}{{PAGENAME}}|action=edit}} add])
 
   }}
 
   }}
 
}}<includeonly>[[Category:Templates that use translation switching|{{PAGENAME}}]]<!--  
 
}}<includeonly>[[Category:Templates that use translation switching|{{PAGENAME}}]]<!--  
Line 14: Line 14:
 
| {{#switch:{{lc:{{{1|}}}}}
 
| {{#switch:{{lc:{{{1|}}}}}
 
  | blank
 
  | blank
| none
 
 
  | en
 
  | en
 
  | n/a
 
  | n/a

Latest revision as of 08:34, 27 September 2015

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}}).

See also