Difference between revisions of "Template:Diff since trans"

From Creative Commons
Jump to: navigation, search
Line 1: Line 1:
 
<includeonly><span class="plainlinks" title="{{Messages|diff-since-last-synch}}">[http://wiki.creativecommons.org/index.php?title={{anchorencode:{{{1}}}}}&diff=&oldid={{{2}}} {{Messages|synchronise}}]</span></includeonly><noinclude>
 
<includeonly><span class="plainlinks" title="{{Messages|diff-since-last-synch}}">[http://wiki.creativecommons.org/index.php?title={{anchorencode:{{{1}}}}}&diff=&oldid={{{2}}} {{Messages|synchronise}}]</span></includeonly><noinclude>
Translated pages are based on an original page in English. That original page changes through time and translations become outdated. This template can be used on translated pages, to verify what changes have been done to the original page in English since the last translation.  
+
Translated pages are translations of an original. That original changes through time and the translations become outdated. Template '''{{PAGENAME}}''' shows what changes have been done to the original page since the last translation.  
  
 
== Use ==
 
== Use ==
 
<pre>{{Diff since trans|name of translated page|number of translated revision}}</pre>
 
<pre>{{Diff since trans|name of translated page|number of translated revision}}</pre>
  
The template creates a link on the right side of the page (see example below), which leads to the appropriate diff list. The template should normally be placed just above the <tt><nowiki>{{</nowiki>Translated From}}</tt> template which [[CC Wiki:Translate|should also be placed in all translated pages]].
+
The template creates a link that leads to the appropriate differences list, between the revision that was the basis of translation and the latest version of the page. In this way, it becomes easy for any user to verify whether the translation is synchronous with the original, and anyone can easily bring the translation back in synch by translating the changes shown in the diff list.
 +
 
 +
'''''Note:''' Once a translation is synchronized again, please also update the number of the translated revision to reflect the new translated revision. You can find the revision number of any revision to a page, by visiting the corresponding history page and moving the pointer above any of the shown revisions; the revision number appears at the bottom of your browser window (in IE, at least.)''
 +
 
 +
It is used in template <code><nowiki>{{Translated From}}</nowiki></code>, to place a "synchronise" link next to the appropriate language.
  
 
== Example ==
 
== Example ==
For example, page [[Pt:Página principal]] is a translation into European Portuguese of revision 34884 of [[Main Page]] in English. So:
+
For example, say that page [[Pt:Página principal]] is a translation into European Portuguese of revision 34884 of the [[Main Page]]. So:
  
<pre>{{diff since trans|Main Page|34884}}</pre>
+
<pre>{{Diff since trans|Main Page|34884}}</pre>
  
(or, in this case, the [[Template:Pt:Diferenças desde a tradução|Pt translation]] of this template) placed in page [[Pt:Página principal]], creates a link that shows all changes to [[Main Page]], since revision 34884, thus:
+
in [[Pt:Página principal]], creates a link that shows all changes to the [[Main Page]] since revision 34884, thus (follow the link to view the diff list):
  
 
{{diff since trans|Main Page|34884}}
 
{{diff since trans|Main Page|34884}}
 
In this way it becomes easy for any user to verify whether the translation is synchronous with the English page, and anyone can easily bring it back in synch by translating the changes shown in the diff.
 
 
'''''Note:''' Once a translation is synchronized again, please also update the number of the translated revision to reflect the new translated revision. You can find the revision number of any revision to a page, by visiting the corresponding history page and moving the pointer above any of the shown revisions; the revision number appears at the bottom of your browser window (in IE, at least.)''
 
  
 
== See also ==
 
== See also ==
Line 27: Line 27:
 
   | articles=Template:Pt:Diferenças desde a tradução
 
   | articles=Template:Pt:Diferenças desde a tradução
 
}}
 
}}
 +
 +
__NOEDITSECTION__
 +
 
[[Category:Support translation templates|{{PAGENAME}}]]
 
[[Category:Support translation templates|{{PAGENAME}}]]
__NOEDITSECTION__
 
 
</noinclude>
 
</noinclude>

Revision as of 15:19, 22 April 2011

Translated pages are translations of an original. That original changes through time and the translations become outdated. Template Diff since trans shows what changes have been done to the original page since the last translation.

Use

{{Diff since trans|name of translated page|number of translated revision}}

The template creates a link that leads to the appropriate differences list, between the revision that was the basis of translation and the latest version of the page. In this way, it becomes easy for any user to verify whether the translation is synchronous with the original, and anyone can easily bring the translation back in synch by translating the changes shown in the diff list.

Note: Once a translation is synchronized again, please also update the number of the translated revision to reflect the new translated revision. You can find the revision number of any revision to a page, by visiting the corresponding history page and moving the pointer above any of the shown revisions; the revision number appears at the bottom of your browser window (in IE, at least.)

It is used in template {{Translated From}}, to place a "synchronise" link next to the appropriate language.

Example

For example, say that page Pt:Página principal is a translation into European Portuguese of revision 34884 of the Main Page. So:

{{Diff since trans|Main Page|34884}}

in Pt:Página principal, creates a link that shows all changes to the Main Page since revision 34884, thus (follow the link to view the diff list):


{{#ifeq:

   {{#show:  | ?Last revision#=}}
   | 
   | [[:|]]
   | (synchronise)

}}

See also