Difference between revisions of "Template:Trans"
From GRASS-Wiki
(created) |
(one argument variation) |
||
(3 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|}}}| from {{{2}}}|}}. | + | This page is in progress of translating to {{{1|{{SUBPAGENAME}}}}}{{#if:{{{2|}}}| from {{{2}}}|}}. |
− | |||
</div> | </div> | ||
− | + | {{#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 17: | Line 15: | ||
<nowiki>{{Trans|Russian|English}}</nowiki> | <nowiki>{{Trans|Russian|English}}</nowiki> | ||
Result: | Result: | ||
− | {{Trans|Russian|English | + | {{Trans|Russian|English}} |
− | + | Or simply: | |
− | + | ||
− | {{ | + | <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:
- "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>"
- (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.