Difference between revisions of "Template:Trans"

From GRASS-Wiki
Jump to: navigation, search
(Languages tamplate removed (not working yet))
(one argument variation)
 
(2 intermediate revisions by the same user not shown)
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 ==
 
 
Temporary template for pages is in progress of translating.  
 
Temporary template for pages is in progress of translating.  
  
Line 16: Line 15:
 
  <nowiki>{{Trans|Russian|English}}</nowiki>
 
  <nowiki>{{Trans|Russian|English}}</nowiki>
 
Result:
 
Result:
  {{Trans|Russian|English|nocat=1}}
+
  {{Trans|Russian|English}}
  
== Localisation ==
+
Or simply:
Exist also localised templates with customized text in follow languages:
+
 
{{Languages|Template:Trans}}
+
<nowiki>{{Trans|Russian}}</nowiki>
 +
 
 +
Result:
 +
{{Trans|Russian}}
  
 
[[Category:Language templates]]
 
[[Category:Language templates]]
 
</noinclude>
 
</noinclude>

Latest revision as of 11:32, 19 October 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.


Or simply:

{{Trans|Russian}}

Result:

This page is in progress of translating to Russian.