Difference between revisions of "Template:Translation"

From Sugar Labs
Jump to navigation Jump to search
(Use HTML table to suppress spurious <p> in template expansion.)
(Don't let Polyglot redirect the 'original' link.)
Line 3: Line 3:
<td align="left">&nbsp;&nbsp;<font size="1">{{:Template:Translation/translation of/lang-{{{lang}}}}} '''[[{{{source}}}|{{{source_display|{{{source}}}}}}]]'''</font></td>
<td align="left">&nbsp;&nbsp;<font size="1">{{:Template:Translation/translation of/lang-{{{lang}}}}} '''[[{{{source}}}|{{{source_display|{{{source}}}}}}]]'''</font></td>
<td align="right"><font size="1">'''<span class="plainlinks">[{{fullurl:{{{source}}}|oldid={{{version}}}}} {{{version_display|{{:Template:Translation/original/lang-{{{lang}}}}}}}}]</span>'''</font>&nbsp;&nbsp;</td>
<td align="right"><font size="1">'''<span class="plainlinks">[{{fullurl:{{{source}}}|oldid={{{version}}&redirect=no}}} {{{version_display|{{:Template:Translation/original/lang-{{{lang}}}}}}}}]</span>'''</font>&nbsp;&nbsp;</td>
<td align="left">&nbsp;&nbsp;{{:{{{source}}}/translations|translated={{{lang}}}}} <small class="plainlinks"> &nbsp; [{{fullurl:{{{source}}}/translations|action=edit}} +/-] </small></td>
<td align="left">&nbsp;&nbsp;{{:{{{source}}}/translations|translated={{{lang}}}}} <small class="plainlinks"> &nbsp; [{{fullurl:{{{source}}}/translations|action=edit}} +/-] </small></td>

Revision as of 23:26, 7 November 2008

  {{:Template:Translation/translation of/lang-{{{lang}}}}} [[{{{source}}}|{{{source}}}]] [{{fullurl:{{{source}}}|oldid={Template:Version&redirect=no}}} {{:Template:Translation/original/lang-{{{lang}}}}}]  
  {{:{{{source}}}/translations|translated={{{lang}}}}}   [{{fullurl:{{{source}}}/translations|action=edit}} +/-] [{{fullurl:{{{source}}}|diff=current&oldid={{{version}}}}} {{:Template:Translation/changes/lang-{{{lang}}}}}]  

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.

raw light mid
#76aac4 #3b9fca #0093d0
#3b9fca #0093d0 #76aac4

NOTE: The (blue) color scheme is based on the 'arrow' used for the Community in the laptop.org site. A sample of colors used or thought about can be seen on the right, with further explorations found in the Sandbox. Comments about them are welcome.


{{ 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" -->
the version parameter is the number displayed in the source page in the [ID# xxxxx] of the language-navigation blue bar. Keeping this number updated to the LAST version you 'translated' or 'updated' will ease updating the page when following the diff link in your page, as it will show those changes in the original from your last update.


{{ Translation | lang = es | source = The OLPC Wiki | version = 30534 }}
  Traducción de The OLPC Wiki Template:Version&redirect=no} original  
  The OLPC Wiki/translations   +/- cambios  
{{ Translation | lang = es | source = The OLPC Wiki | version = 30534 
               | source_display = original 
               | version_display = versión traducida 
               | diff_display = últimos cambios }}
  Traducción de original Template:Version&redirect=no} versión traducida  
  The OLPC Wiki/translations   +/- últimos cambios