Difference between revisions of "Template:Translation"

From Sugar Labs
Jump to navigation Jump to search
(pass translated language to {{{PAGENAME}}}/translations "template")
 
(8 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
<div  style="border-top:1px solid #888888; border-bottom:1px solid #888888; margin:0px;">
 
<div  style="border-top:1px solid #888888; border-bottom:1px solid #888888; margin:0px;">
{| width="100%" cellpadding="0" cellspacing="0" style="background-color:#d0e6f9; color:grey"
+
<table width="100%" cellpadding="0" cellspacing="0" style="background-color:#d0e6f9; color:grey">
|-
+
<tr>
| <!-- width=75% --> align=left | &nbsp;&nbsp;<font size="1">{{:Template:Translation/translation of/lang-{{{lang}}}}} '''[[{{{source}}}|{{{source_display|{{{source}}}}}}]]'''</font>
+
<td align="left">&nbsp;&nbsp;<font size="1">{{:Template:Translation/translation of/lang-{{{lang}}}}} '''[[{{{source}}}|{{{source_display|{{{source}}}}}}]]'''</font></td>
| <!-- width=25% --> align=right | <font size="1">'''<span class="plainlinks">[{{fullurl:{{{source}}}|oldid={{{version}}}}} {{{version_display|{{:Template:Translation/original/lang-{{{lang}}}}}}}}]</span>'''</font>&nbsp;&nbsp;
+
<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>
|-
+
</tr><tr>
| align=left | &nbsp;&nbsp;{{:{{{source}}}/translations|translated={{{lang}}}}} <small class="plainlinks"> &nbsp; [{{fullurl:{{{source}}}/translations|action=edit}} +/-] </small>
+
<td align="left">&nbsp;&nbsp;{{:{{{source}}}/translations|translated={{{lang}}}}} <small class="plainlinks"> &nbsp; [{{fullurl:{{{source}}}/translations|action=edit}} +/-] </small></td>
| align=right | <font size="1">'''<span class="plainlinks">[{{fullurl:{{{source}}}|diff=current&amp;oldid={{{version}}}}} {{{diff_display|{{:Template:Translation/changes/lang-{{{lang}}}}}}}}]</span>'''</font>&nbsp;&nbsp;
+
<td align="right"><font size="1">'''<span class="plainlinks">[{{fullurl:{{{source}}}|diff=current&amp;oldid={{{version}}}}} {{{diff_display|{{:Template:Translation/changes/lang-{{{lang}}}}}}}}]</span>'''</font>&nbsp;&nbsp;</td>
|-
+
</tr>
|}
+
</table>
 
</div><includeonly>{{#ifeq: {{{status|xx}}} | {{translation/wanted/lang-{{{lang}}}}} | {{Translation/no translation/lang-{{{lang}}} | source = {{{source}}} }} [[Category:{{#ifexist:Template:Translation/wanted/lang-{{{lang}}}|{{translation/wanted/lang-{{{lang}}}}}|Translations wanted/lang-{{{lang}}} }}]] {{ {{#if:{{NAMESPACE}}||:}}{{{source}}} }} | {{#ifeq:{{{status|}}} | {{translation/incomplete/lang-{{{lang}}}}} | {{#ifexist:Template:translation/translation-incomplete/lang-{{{lang}}}|{{translation/translation-incomplete/lang-{{{lang}}}}}|{{translation/translation-incomplete/lang-en}} }}[[Category:Ongoing translations/lang-{{{lang}}}]] | [[Category:Translations lang-{{{lang}}}]]}} }}</includeonly><noinclude>
 
</div><includeonly>{{#ifeq: {{{status|xx}}} | {{translation/wanted/lang-{{{lang}}}}} | {{Translation/no translation/lang-{{{lang}}} | source = {{{source}}} }} [[Category:{{#ifexist:Template:Translation/wanted/lang-{{{lang}}}|{{translation/wanted/lang-{{{lang}}}}}|Translations wanted/lang-{{{lang}}} }}]] {{ {{#if:{{NAMESPACE}}||:}}{{{source}}} }} | {{#ifeq:{{{status|}}} | {{translation/incomplete/lang-{{{lang}}}}} | {{#ifexist:Template:translation/translation-incomplete/lang-{{{lang}}}|{{translation/translation-incomplete/lang-{{{lang}}}}}|{{translation/translation-incomplete/lang-en}} }}[[Category:Ongoing translations/lang-{{{lang}}}]] | [[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.<font size="-1">
 
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.<font size="-1">
Line 26: Line 26:
 
  <nowiki>{{</nowiki> Translation
 
  <nowiki>{{</nowiki> Translation
 
   | lang            =  &lt;-- 2/3 character language-code of the translation&mdash;ie: <tt>en, es, ...</tt> --&gt;
 
   | 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;
+
   | source          =  &lt;-- Source page name&mdash;ie: "Welcome to the Sugar Labs wiki" (sans quotes) --&gt;
 
   | version        =  &lt;-- Version ID# of the edition being translated or last updated --&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
 
   | ''source_display''  =  &lt;-- OPTIONAL - display string to the source link above
Line 40: Line 40:
 
== Samples ==
 
== Samples ==
  
  <nowiki>{{</nowiki> Translation | lang = es | source = The OLPC Wiki | version = 30534 <nowiki>}}</nowiki>
+
  <nowiki>{{</nowiki> Translation | lang = es | source = Welcome to the Sugar Labs wiki | version = 26654 <nowiki>}}</nowiki>
{{ Translation | lang = es | source = The OLPC Wiki | version = 30534 }}
+
{{ Translation | lang = es | source = Welcome to the Sugar Labs wiki | version = 26654 }}
  <nowiki>{{</nowiki> Translation | lang = es | source = The OLPC Wiki | version = 30534
+
  <nowiki>{{</nowiki> Translation | lang = es | source = Welcome to the Sugar Labs wiki | version = 26654 
 
                 | source_display = original  
 
                 | source_display = original  
 
                 | version_display = versión traducida  
 
                 | version_display = versión traducida  
 
                 | diff_display = últimos cambios <nowiki>}}</nowiki>
 
                 | diff_display = últimos cambios <nowiki>}}</nowiki>
{{ Translation | lang = es | source = The OLPC Wiki | version = 30534
+
{{ Translation | lang = es | source = Welcome to the Sugar Labs wiki | version = 26654
 
           | source_display = original | version_display = versión traducida | diff_display = últimos cambios }}
 
           | source_display = original | version_display = versión traducida | diff_display = últimos cambios }}
  

Latest revision as of 10:51, 13 April 2009

  {{:Template:Translation/translation of/lang-{{{lang}}}}} [[{{{source}}}|{{{source}}}]] [{{fullurl:{{{source}}}|oldid={{{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.

Usage

{{ Translation
  | lang            =  <-- 2/3 character language-code of the translation—ie: en, es, ... -->
  | source          =  <-- Source page name—ie: "Welcome to the Sugar Labs 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" -->
}}
NOTE
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.

Samples

{{ Translation | lang = es | source = Welcome to the Sugar Labs wiki | version = 26654 }}
  Traducción de Welcome to the Sugar Labs wiki original  
  Welcome to the Sugar Labs wiki/translations   +/- cambios  
{{ Translation | lang = es | source = Welcome to the Sugar Labs wiki | version = 26654  
               | source_display = original 
               | version_display = versión traducida 
               | diff_display = últimos cambios }}
  Traducción de original versión traducida  
  Welcome to the Sugar Labs wiki/translations   +/- últimos cambios