Template:Translations: Difference between revisions
mNo edit summary |
m (Changed protection level for "Template:Translations" [edit=autoconfirmed:move=autoconfirmed]) |
||
(19 intermediate revisions by 5 users not shown) | |||
Line 2: | Line 2: | ||
<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> {{{1|{{{{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]] '''[ID# {{REVISIONID}}]''' {{#if:{{{1|}}}|| <span class="plainlinks">[{{fullurl:{{NAMESPACE}}:{{PAGENAME}}/translations|action=edit}} <tt>'''+/-'''</tt>] |
<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> |
</div><includeonly>[[Category:Translated Pages]]</includeonly> |
||
<noinclude><!-- |
<noinclude><!-- |
||
Line 15: | Line 15: | ||
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. |
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 |
'''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 comparisons between the current version and the version originally translated or last updated. |
||
== Usage == |
== Usage == |
||
If no argument is provided, the sub-page <tt>currentPage/translations</tt> will be included. This page should |
If no argument is provided, the sub-page <tt>currentPage/translations</tt> will be included. This page should use the {{tl|Translationlist}} 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 25: | ||
== 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 |
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 (ie: , - /) |
||
<nowiki>{{Translations |
<nowiki>{{Translations |
Latest revision as of 22:15, 24 January 2010
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# 230870] +/- |
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# 230870] 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 | | or some other (discrete) separator (ie: , - /)
{{Translations | [[One Laptop per Child|english]] | [[Una Laptop por Chico|español]] - [[Um Laptop para cada Criança|português]] / [[One Laptop per Child zh|中文]]}}