Template:Translation: Difference between revisions

From OLPC
Jump to navigation Jump to search
mNo edit summary
(recovering an old botched attempt... to replace Translated Page)
Line 1: Line 1:
<div style="border-top:1px solid #888888; border-bottom:1px solid #888888; margin:0px;">
<div style="background:#2DB380; color:white;">&nbsp;&nbsp;This page is a translation of '''[[{{{original}}}]]'''.
{| width="100%" cellpadding="0" cellspacing="0" style="background-color:#0093d0; color:white"
<br>Also available in = {{#if:{{{es<includeonly>|</includeonly>}}} | [[{{{es}}}|español]] -}} {{ #if: {{{pt<includeonly>|</includeonly>}}} | [[{{{pt}}}|português]] -}} {{ #if: {{{zh<includeonly>|</includeonly>}}} | [[{{{zh}}}|中文 (Simplified Chinese)]] =}}&nbsp;&nbsp;Please use the [[{{NAMESPACE}} talk:{{PAGENAME}}|<font color="white"><b>talk page</b></font>]] for your comments.</div>
|-
|width=75% align=left | &nbsp;&nbsp;<font size="1">Translation of '''[[{{{source}}}|{{{source_display|{{{source}}}}}}]]'''</font>
|width=25% align=right | <font size="1">'''[{{fullurl:{{{source}}}|oldid={{{version}}}}} {{{version_display|original}}}]'''</font>&nbsp;&nbsp;
|-
!width=75% align=left | &nbsp;&nbsp;{{:{{{source}}}/translations}}
|width=25% align=right | <font size="1">'''[{{fullurl:{{{source}}}|diff=current&amp;oldid={{{version}}}}} {{{diff_display|diff}}}]'''</font>&nbsp;&nbsp;
|-
|}
</div><noinclude><includeonly>[[Category:Translations lang-{{{lang}}}]]</includeonly><noinclude>
This template (in conjunction with [[Template:Translations]]&mdash;note the plural&mdash;and the <tt>source/translations</tt> page) are used to better keep track of the [[:Category:Translated Pages]] and the [[translating]] effort to lower the language barrier of the project.


== Usage ==
<noinclude>
Usage:
<nowiki>{{Translation | original=One Laptop per Child
| es=Un portátil por niño
| pt=Um Laptop para cada Criança
| zh=One Laptop per Child zh }}</nowiki>


<nowiki>{{</nowiki> Translation
Generates:
| lang = &lt;-- 2/3 character language-code of the translation&mdash;ie: <tt>en, es, ...</tt> --&gt;
| source = &lt;-- Source page name&mdash;ie: "The OLPC Wiki" (sans quotes) --&gt;
| version = &lt;-- Version ID# of the edition being translated or last updated --&gt;
| ''source_display'' = &lt;-- OPTIONAL - display string to the source link above
default = value of ''source'' --&gt;
| ''version_display'' = &lt;-- OPTIONAL - display string for the translated ''version'' link
default = "original" --&gt;
| ''diff_display'' = &lt;-- OPTIONAL - display string for the ''differences'' to current link
default = "diff" --&gt;
<nowiki>}}</nowiki>


== Samples ==
----

{{Translation | original=One Laptop per Child
<nowiki>{{</nowiki> Translation | lang = es | source = The OLPC Wiki | version = 30534 <nowiki>}}</nowiki>
| es=Un portátil por niño
{{ Translation | lang = es | source = The OLPC Wiki | version = 30534 }}
| pt=Um Laptop para cada Criança
<nowiki>{{</nowiki> Translation | lang = es | source = The OLPC Wiki | version = 30534
| zh=One Laptop per Child zh }}
| source_display = original | version_display = versión traducida | diff_display = últimos cambios <nowiki>}}</nowiki>
----
{{ Translation | lang = es | source = The OLPC Wiki | version = 30534
References: [http://en.wikipedia.org/wiki/Help:Magic_words Magic Words], [http://meta.wikimedia.org/wiki/ParserFunctions Parser Functions] & [http://meta.wikimedia.org/wiki/ParserFunctions#Installation its installation].
| source_display = original | version_display = versión traducida | diff_display = últimos cambios }}
</noinclude>
</noinclude>

Revision as of 20:27, 3 April 2007

  Translation of [[{{{source}}}|{{{source}}}]] [{{fullurl:{{{source}}}|oldid={{{version}}}}} original]  
  {{:{{{source}}}/translations}} [{{fullurl:{{{source}}}|diff=current&oldid={{{version}}}}} diff]  

This template (in conjunction with Template:Translations—note the plural—and the source/translations page) are used to better keep track of the Category:Translated Pages and the translating effort to lower the language barrier of the project.

Usage

{{ Translation
  | lang            =  <-- 2/3 character language-code of the translation—ie: en, es, ... -->
  | source          =  <-- Source page name—ie: "The OLPC Wiki" (sans quotes) -->
  | version         =  <-- Version ID# of the edition being translated or last updated -->
  | source_display  =  <-- OPTIONAL - display string to the source link above
                            default = value of source -->
  | version_display =  <-- OPTIONAL - display string for the translated version link
                            default = "original" -->
  | diff_display    =  <-- OPTIONAL - display string for the differences to current link
                            default = "diff" -->
}}

Samples

{{ Translation | lang = es | source = The OLPC Wiki | version = 30534 }}
  Translation of The OLPC Wiki original  
  

english | عربيپښتوбългарскиdeutschespañolfrançaiskreyòl ayisyenitaliano日本語한국어монголBahasa Melayuनेपालीnorskportuguêsromânăрусскийkinyarwandatürkçe中文繁體中文

diff  
{{ Translation | lang = es | source = The OLPC Wiki | version = 30534 
         | source_display = original | version_display = versión traducida | diff_display = últimos cambios }}
  Translation of original versión traducida  
  

english | عربيپښتوбългарскиdeutschespañolfrançaiskreyòl ayisyenitaliano日本語한국어монголBahasa Melayuनेपालीnorskportuguêsromânăрусскийkinyarwandatürkçe中文繁體中文

últimos cambios