Template:Translations: Difference between revisions

From OLPC
Jump to navigation Jump to search
m (debugging)
m (debugging)
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;">
<table width="100%" cellpadding="0" cellspacing="0" style="background-color:#2DB380; color:white">
<table width="100%" cellpadding="0" cellspacing="0" style="background-color:#2DB380; color:white">
<tr><td>&nbsp;&nbsp;bar-{{/translations}}-foo</td></tr></table>
<tr><td>&nbsp;&nbsp;{{{1|{{/translations}}}}}</td></tr></table>
<!--
<tr><td>&nbsp;&nbsp;{{/translations}}</td></tr></table>
<tr><td>&nbsp;&nbsp;{{{1|{{/translations}}}}}</td></tr></table>
{| width="100%" cellpadding="0" cellspacing="0" style="background-color:#2DB380; color:white"
{| width="100%" cellpadding="0" cellspacing="0" style="background-color:#2DB380; color:white"
|-
|-
|&nbsp;&nbsp;foo-{{/translations}}-bar <!--|&nbsp;&nbsp;{{{1|{{/translations}}}}}-->
|&nbsp;&nbsp;foo-{{/translations}}-bar --><!--|&nbsp;&nbsp;{{{1|{{/translations}}}}}--><!--
|-
|-
|}
|}
-->
</div><noinclude>[[Category:Template]]
</div><noinclude>[[Category:Template]]


Line 21: Line 25:
english | español | português
english | español | português


<!-- If an argument is provided, it should be a fully wiki set of links with their display. Unfortunately, I have no clue how to escape '|' in order to be included, so I would recommend using some other (discrete) separator (ie: , - /)
If an argument is provided, it should be a fully wiki set of links with their display. Unfortunately, I have no clue how to escape '|' in order to be included, so I would recommend using some other (discrete) separator (ie: , - /)


<nowiki>{{Translations
<nowiki>{{Translations
| [[One Laptop per Child|english]] - [[Un portátil por niño|español]] - [[Um Laptop para cada Criança|português]] - [[One Laptop per Child zh|中文]]}}</nowiki>
| [[One Laptop per Child|english]] - [[Un portátil por niño|español]] - [[Um Laptop para cada Criança|português]] - [[One Laptop per Child zh|中文]]}}</nowiki>

----


{{Translations
{{Translations
| [[One Laptop per Child|english]] - [[Un portátil por niño|español]] - [[Um Laptop para cada Criança|português]] - [[One Laptop per Child zh|中文]]}}
| [[One Laptop per Child|english]] - [[Un portátil por niño|español]] - [[Um Laptop para cada Criança|português]] - [[One Laptop per Child zh|中文]]}}

-->
</noinclude>
</noinclude>

Revision as of 05:19, 23 February 2007

  Template:Translations/translations

The intent of this template is to mimic the inverse of the Template:Translated Page (which is geared towards the translations) by having a template to be placed in the original pages.

Usage

If no argument is provided, the sub-page currentPage/translations 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 '|'.

{{Translations}}

Could result in a line with several links (although one should be the local and original page) each pointing to a translated version of the current original page. ie:

english | español | português

If an argument is provided, it should be a fully wiki set of links with their display. Unfortunately, I have no clue how to escape '|' in order to be included, so I would recommend using some other (discrete) separator (ie: , - /)

{{Translations 
  | [[One Laptop per Child|english]] - [[Un portátil por niño|español]] - [[Um Laptop para cada Criança|português]] - [[One Laptop per Child zh|中文]]}}

   english - español - português - 中文