Difference between revisions of "Template:Translations"

From Sugar Labs
Jump to navigation Jump to search
(??)
m
 
(24 intermediate revisions by 7 users not shown)
Line 1: Line 1:
<div style="border-top:1px solid #888888; border-bottom:1px solid #888888; margin:0px;">
+
<div class="linkgroup" style="border-top:1px solid #888888; border-bottom:1px solid #888888; margin:0px; padding-left:0.7em; background-color:#d0e6f9;">
 
<table 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>
 
<tr>
  <td>&nbsp;&nbsp;{{{1|{{#ifexist:{{PAGENAME}}/translations|{{{{NAMESPACE}}:{{PAGENAME}}/translations}}}|Please copy/paste "<nowiki>[[</nowiki>{{NAMESPACE}}:{{PAGENAME}}&#124;English]] &#124; <nowiki>[[</nowiki>{{NAMESPACE}}:{{PAGENAME}}/lang-es&#124;español]]" to {{{{NAMESPACE}}:{{PAGENAME}}/translations}}}}}}}</td>
+
  <td>{{{1|{{#ifexist: {{NAMESPACE}}:{{PAGENAME}}/translations |{{{{NAMESPACE}}:{{PAGENAME}}/translations|translated=ORIGINAL}}|{{translations/instructions}} }}}}}</td>
  <td align="right" style="font-size:80%">[[Translating/HowTo|HowTo]]&nbsp;'''[ID#&nbsp;{{REVISIONID}}]'''&nbsp;{{#if:{{{1|}}}||&nbsp;<span class="plainlinks">[{{fullurl:{{NAMESPACE}}:{{PAGENAME}}/translations|action=edit}} <tt>'''+/-'''</tt>]}}&nbsp;&nbsp;</span></td></tr></table>
+
  <td align="right" style="font-size:80%">[[Translation Team/Wiki Translation|HowTo]]&nbsp;'''[ID#&nbsp;{{REVISIONID}}]'''&nbsp;{{#if:{{{1|}}}||&nbsp;<span class="plainlinks">[{{fullurl:{{NAMESPACE}}:{{PAGENAME}}/translations|action=edit}} <tt>'''+/-'''</tt>]&nbsp;&nbsp;</span>}}
</div><includeonly>[[Category:Translated Pages]]</includeonly>
+
</td>
 +
</tr>
 +
</table>
 +
</div>
 +
<includeonly>[[Category:Translated]]</includeonly>
 
<noinclude><!--
 
<noinclude><!--
  
Line 19: Line 23:
 
== Usage ==
 
== Usage ==
  
If no argument is provided, the sub-page <tt>currentPage/translations</tt> will be included. This page should be as simple as possible, and is currently being used as a sequence of links displayed not by their title, but by the short language names (in their own respective language) separated by '|'.
+
If no argument is provided, the sub-page <tt>currentPage/translations</tt> will be included. This page should use the <nowiki>{{Translationlist}}</nowiki> template to create a list of available translations. For instance, putting <nowiki>{{Translationlist|es|pt|origlang=en}}</nowiki> will result in a list like:
 
 
<nowiki>{{Translations}}</nowiki>
 
 
 
Could result in a line with several links (although one should be the '''''original page''''') each pointing to a translated version of the current ''original'' page. ie:
 
  
 
  english | español | português
 
  english | español | português
Line 29: Line 29:
 
== Not recommended usage ==
 
== Not recommended usage ==
  
If an argument is provided, it should be a fully set of wiki links with their display. Unfortunately, '|' is used as parameter delimeter and thus needs to be escaped. A solution is to use &amp;#124; &#124; or some other (discrete) separator (ie: , - /)
+
If an argument is provided, it should be a fully set of wiki links with their display. Unfortunately, '|' is used as parameter delimiter and thus needs to be escaped. A solution is to use &amp;#124; &#124; or some other (discrete) separator (i.e.: , - /)
  
 
  <nowiki>{{Translations  
 
  <nowiki>{{Translations  
   | [[One Laptop per Child|english]] &amp;#124; [[Una Laptop por Chico|español]] - [[Um Laptop para cada Criança|português]] / [[One Laptop per Child zh|中文]]}}</nowiki>
+
   | [[Sugar Labs|english]] &amp;#124; [[Azúcar Labs|español]] - [[Açúcar Labs|português]] / [[糖 实验室|中文]]}}</nowiki>
  
 
{{Translations  
 
{{Translations  
   | [[One Laptop per Child|english]] &#124; [[Una Laptop por Chico|español]] - [[Um Laptop para cada Criança|português]] / [[One Laptop per Child/lang-zh|中文]]}}
+
   | [[Sugar Labs|english]] &#124; [[Azúcar Labs|español]] - [[Açúcar Labs|português]] / [[糖 实验室/lang-zh|中文]]}}
  
 
</noinclude>
 
</noinclude>

Latest revision as of 15:04, 27 July 2010

Please copy/paste "{{Translationlist | xx | origlang=en | translated={{{translated}}}}}" (where xx is Translation Team/ISO 639 language code for your translation) to Template:Translations/translations HowTo [ID# 54897]  +/-  

The intent of this template is to mimic the inverse of the Template:Translation (which is geared towards the translated page) by having a template to be placed in the original pages while preserving the capability to navigate all the translations.

NOTE: When translating (or updating a translated page) you MUST update the version number of the {{Translation ... version = xxxxx ... }}—with the value reported on the far right: [ID# 54897] by this template in the source page. This will allow exact comparisons between the current version and the version originally translated or last updated.

Usage

If no argument is provided, the sub-page currentPage/translations will be included. This page should use the {{Translationlist}} template to create a list of available translations. For instance, putting {{Translationlist|es|pt|origlang=en}} will result in a list like:

english | español | português

Not recommended usage

If an argument is provided, it should be a fully set of wiki links with their display. Unfortunately, '|' is used as parameter delimiter and thus needs to be escaped. A solution is to use &#124; | or some other (discrete) separator (i.e.: , - /)

{{Translations 
  | [[Sugar Labs|english]] &#124; [[Azúcar Labs|español]] - [[Açúcar Labs|português]] / [[糖 实验室|中文]]}}
english | español - português / 中文 HowTo [ID# 54897]