Difference between revisions of "Template:Trans"

From Team Fortress Wiki
Jump to: navigation, search
(add exception for pt-br)
Line 2: Line 2:
 
| type = notice
 
| type = notice
 
| image = Globeicon.png
 
| image = Globeicon.png
| contents = This page is in the process of being '''[[Help:Language translation|translated]]''' to {{{1|{{#language:{{SUBPAGENAME}}}}}}}{{#if:{{{2|}}}| &nbsp;from {{{2}}}|}}.<br /><small>If you can speak {{{1|{{#language:{{SUBPAGENAME}}}}}}}{{#if:{{{1|}}}|&nbsp;or another non-English language|}}, see [[Help:Language translation]] for how you can help by translating.</small>
+
| contents = This page is in the process of being '''[[Help:Language translation|translated]]''' to {{{1|{{#language:{{SUBPAGENAME}}}}}}} to English.<br /><small>If you can speak {{{1|{{#language:{{SUBPAGENAME}}}}}}}{{#if:{{{1|}}}|&nbsp;or another non-English language|}}, see [[Help:Language translation]] for how you can help by translating.</small>
 
}}<includeonly>{{#if:{{{1|}}}|{{#if:{{{nocat|}}}||[[Category:Translating into {{#switch:{{{1|}}}
 
}}<includeonly>{{#if:{{{1|}}}|{{#if:{{{nocat|}}}||[[Category:Translating into {{#switch:{{{1|}}}
 
  | Brazilian Portuguese
 
  | Brazilian Portuguese
Line 26: Line 26:
 
  | zh-hant = Chinese (Traditional)
 
  | zh-hant = Chinese (Traditional)
 
  | #default = {{{1}}}
 
  | #default = {{{1}}}
  }}|{{BASEPAGENAME}}]]}}|}}</includeonly><noinclude><br />
+
  }}|{{BASEPAGENAME}}]]}}|}}</includeonly><noinclude>{{doc begin}}
== Description ==
+
Use {{tl|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.
Temporary template for pages in progress of being translated.  
 
  
Two parameters:
+
=== Usage ===
# "to" language name; in a format "Russian" etc.
+
* {{tlx|Trans|Russian}} will place the notice and put the page in [[:Category:Translating into Russian]]
#:If undefined - substitute variable "SUBPAGENAME"
 
#:If defined - page automatically added in category named "Category:Translating into <"to" language name>"
 
# (optional) "from" language name
 
  
== Example ==
+
[[Category:Language templates|Trans]]
Sample calling for page in progress of translating from English to Russian:
 
<nowiki>{{Trans|Russian|English}}</nowiki>
 
 
 
Result:
 
{{Trans|Russian|English|nocat=1}}
 
 
 
[[Category:Language templates]]
 
 
</noinclude>
 
</noinclude>

Revision as of 04:06, 9 October 2010

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.

Usage