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:#0093d0; color:white"> | + | <table width="100%" cellpadding="0" cellspacing="0" style="background-color:#d0e6f9; color:grey"> |
− | <tr><td> {{{1|{{/translations}}}}}</td><td align="right"> [http://wiki.laptop.org/index.php?title={{PAGENAMEE}}/translations&action=edit +/-]</td></tr></table> | + | <tr> |
− | </div><noinclude><!-- | + | <td> {{{1|{{{{NAMESPACE}}:{{PAGENAME}}/translations}}}}}</td> |
| + | <td align="right" style="font-size:80%">[[Translating/HowTo|HowTo]] '''[ID# {{REVISIONID}}]''' {{#if:{{{1|}}}|| <span class="plainlinks">[{{fullurl:{{NAMESPACE}}:{{PAGENAME}}/translations|action=edit}} <tt>'''+/-'''</tt>]}} </span></td></tr></table> |
| + | </div><includeonly>[[Category:Translated Pages]]</includeonly> |
| + | <noinclude><!-- |
| | | |
| The reason why there's an HTML TABLE (instead of a wiki table) was because when a sub-page containing '|' characters was included, they were interpreted / parsed as table cell parameters, resulting in the first 'translated page' lost... or interpreted as invalid cell parameters. | | The reason why there's an HTML TABLE (instead of a wiki table) was because when a sub-page containing '|' characters was included, they were interpreted / parsed as table cell parameters, resulting in the first 'translated page' lost... or interpreted as invalid cell parameters. |
Line 10: |
Line 13: |
| -->[[Category:Template]] | | -->[[Category:Template]] |
| | | |
− | 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. | + | 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 ''<tt>version</tt>'' number of the [[Template:Translation|<tt><nowiki>{{Translation ... version = xxxxx ... }}</nowiki></tt>]]—with the value reported on the far right: '''<tt>[ID# {{REVISIONID}}]</tt>''' by this template in the ''<tt>source</tt>'' page. This will allow exact comparissons between the current version and the version originally translated or last updated. |
| | | |
| == Usage == | | == Usage == |
Line 18: |
Line 23: |
| <nowiki>{{Translations}}</nowiki> | | <nowiki>{{Translations}}</nowiki> |
| | | |
− | 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: | + | 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 |
| | | |
− | If an argument is provided, it should be a fully wiki set of 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: , - /) | + | == 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: , - /) |
| | | |
| <nowiki>{{Translations | | <nowiki>{{Translations |
− | | [[One Laptop per Child|english]] &#124; [[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]] &#124; [[Una Laptop por Chico|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]] | [[Una Laptop por Chico|español]] - [[Um Laptop para cada Criança|português]] / [[One Laptop per Child/lang-zh|中文]]}} |
| | | |
| </noinclude> | | </noinclude> |