Difference between revisions of "Template:Trans"

From GRASS-Wiki
Jump to: navigation, search
(Languages tamplate removed (not working yet))
(updated)
Line 1: Line 1:
<div style="color:#000000; border:solid 1px #A8A8A8; padding:0.5em 1em 0.5em 0.7em; margin:0.5em 0.5em 0.5em 0.5em; background-color:#FFFFFF;font-size:95%; vertical-align:middle;">
+
<includeonly><div style="color:#000000; border:solid 1px #A8A8A8; padding:0.5em 1em 0.5em 0.7em; margin:0.5em 0.5em 0.5em 0.5em; background-color:#FFFFFF;font-size:95%; vertical-align:middle;">
 
This page is in progress of translating to {{{1|{{SUBPAGENAME}}}}}{{#if:{{{2|}}}| &nbsp;from {{{2}}}|}}.
 
This page is in progress of translating to {{{1|{{SUBPAGENAME}}}}}{{#if:{{{2|}}}| &nbsp;from {{{2}}}|}}.
 
</div>
 
</div>
<includeonly>{{#if:{{{1|}}}|{{#if:{{{nocat|}}}||[[Category:Translating into {{{1}}}]]}}|}}</includeonly>
+
{{#if:{{{1|}}}|{{#if:{{{nocat|}}}||[[Category:Translating into {{{1}}}]]}}|}}</includeonly>
 
<noinclude>
 
<noinclude>
 
== Description ==
 
== Description ==
Line 17: Line 17:
 
Result:
 
Result:
 
  {{Trans|Russian|English|nocat=1}}
 
  {{Trans|Russian|English|nocat=1}}
 
== Localisation ==
 
Exist also localised templates with customized text in follow languages:
 
{{Languages|Template:Trans}}
 
  
 
[[Category:Language templates]]
 
[[Category:Language templates]]
 
</noinclude>
 
</noinclude>

Revision as of 23:37, 7 July 2008


Description

Temporary template for pages is in progress of translating.

Two parameters:

  1. "to" language name; in a format "Russian" etc.
    If udefined - substitute variable "SUBPAGENAME"
    If defined - page automatically added in category named "Category:Translating into <"to" language name>"
  2. (optional) "from" language name

Sample calling for page in progress of translating from English to Russian:

{{Trans|Russian|English}}

Result:

This page is in progress of translating to Russian from English.