Template:Translations: Difference between revisions

From OLPC
Jump to navigation Jump to search
No edit summary
(Move if's closebrackets to the appropriate spot.)
Line 3: Line 3:
<tr>
<tr>
<td>&nbsp;&nbsp;{{{1|{{#ifexist: {{NAMESPACE}}:{{PAGENAME}}/translations |{{{{NAMESPACE}}:{{PAGENAME}}/translations}}|{{translations/instructions}} }}}}}</td>
<td>&nbsp;&nbsp;{{{1|{{#ifexist: {{NAMESPACE}}:{{PAGENAME}}/translations |{{{{NAMESPACE}}:{{PAGENAME}}/translations}}|{{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%">[[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>
</div><includeonly>[[Category:Translated Pages]]</includeonly>
</div><includeonly>[[Category:Translated Pages]]</includeonly>
<noinclude><!--
<noinclude><!--

Revision as of 06:04, 7 June 2008

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

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# 136240] 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 delimeter and thus needs to be escaped. A solution is to use &#124; | or some other (discrete) separator (ie: , - /)

{{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 zh|中文]]}}
   english | español - português / 中文 HowTo [ID# 136240]