Difference between revisions of "Template:Trans"

From Team Fortress Wiki
Jump to: navigation, search
m
(Removed {{auto lang cat}} (deprecated).)
Line 43: Line 43:
 
   }}
 
   }}
 
  }}
 
  }}
}}<includeonly>[[Category:Translating into {{lang name|name|{{{lang|{{SUBPAGENAME}}}}}}}|{{BASEPAGENAME}}]]<!--
+
}}<includeonly>[[Category:Translating into {{lang name|name|{{{lang|{{SUBPAGENAME}}}}}}}|{{BASEPAGENAME}}]]</includeonly><noinclude>
// Auto language tracking
 
-->{{#ifeq:{{NAMESPACE}}|{{ns:0}}|{{auto lang cat}}|}}<!--
 
--></includeonly><noinclude>
 
 
{{translation switching|ar, da, de, es, fi, fr, hu, it, ko, nl, no, pl, pt, pt-br, ru, sv}}
 
{{translation switching|ar, da, de, es, fi, fr, hu, it, ko, nl, no, pl, pt, pt-br, ru, sv}}
 
{{doc begin}}
 
{{doc begin}}

Revision as of 10:11, 19 August 2011

Documentation for Trans

Use {{trans}} on pages that have not been fully translated yet. It will display the above notice and categorize the page correctly so uncompleted translations can be managed.

{{trans}} automatically detects the language of the page and will display the correct name and categorize the page correctly by default.

"{{trans|Italian|English}}" is no longer needed, just {{trans}} at the top of the page will suffice.

Usage

  • {{Trans}} when used on Soldier/ru will place the above notice and put the page in Category:Translating into Russian
  • If, for example, you need to place the notice on a page that doesn't use a lang subpage, like a draft version in the user space, you can force a particular language using the parameter lang:
    {{Trans|lang=de}} will place the same notice and put the page in Category:Translating into German.
    ^ This is not needed on article pages. Just place {{trans}} at the top of the page and the message will automatically change.