Template:Translation: Difference between revisions

From OLPC
Jump to navigation Jump to search
m (lang-specific category out of place...)
m (hiding arrow links for links that actually internal)
Line 3: Line 3:
|-
|-
|width=75% align=left | &nbsp;&nbsp;<font size="1">Translation of '''[[{{{source}}}|{{{source_display|{{{source}}}}}}]]'''</font>
|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=25% align=right | <font size="1">'''<span class="plainlinks">[{{fullurl:{{{source}}}|oldid={{{version}}}}} {{{version_display|original}}}]</span>'''</font>&nbsp;&nbsp;
|-
|-
!width=75% align=left | &nbsp;&nbsp;{{:{{{source}}}/translations}}
!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;
|width=25% align=right | <font size="1">'''<span class="plainlinks">[{{fullurl:{{{source}}}|diff=current&amp;oldid={{{version}}}}} {{{diff_display|diff}}}]</span>'''</font>&nbsp;&nbsp;
|-
|-
|}
|}
Line 31: Line 31:
{{ Translation | lang = es | source = The OLPC Wiki | version = 30534 }}
{{ Translation | lang = es | source = The OLPC Wiki | version = 30534 }}
<nowiki>{{</nowiki> Translation | lang = es | source = The OLPC Wiki | version = 30534
<nowiki>{{</nowiki> Translation | lang = es | source = The OLPC Wiki | version = 30534
| source_display = original
| source_display = original | version_display = versión traducida | diff_display = últimos cambios <nowiki>}}</nowiki>
| version_display = versión traducida
| diff_display = últimos cambios <nowiki>}}</nowiki>
{{ Translation | lang = es | source = The OLPC Wiki | version = 30534
{{ Translation | lang = es | source = The OLPC Wiki | version = 30534
| source_display = original | version_display = versión traducida | diff_display = últimos cambios }}
| source_display = original | version_display = versión traducida | diff_display = últimos cambios }}

Revision as of 05:17, 4 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