Difference between revisions of "Template:Diff since trans"

From Creative Commons
Jump to: navigation, search
Line 5: Line 5:
 
|message-synchronise=synchronise
 
|message-synchronise=synchronise
 
}}</includeonly><noinclude>
 
}}</includeonly><noinclude>
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.  
+
Every translation is the translation of a source page. That source page changes through time, and the translation becomes outdated.
 +
 
 +
Template '''{{PAGENAME}}''' verifies if the revision ID of a source page has changed. If it has, the template produces a link to what changes were done to the source page since that revision.
 +
 
 +
It is used in template <code><nowiki>{{Translated From}}</nowiki></code>, to place a "synchronise" link next to the appropriate language if the translation has become outdated.
  
 
== Use ==
 
== Use ==
<pre>{{Diff since trans|name of translated page|number of translated revision}}</pre>
+
<pre>{{Diff since trans|source page|revision ID}}</pre>
 +
 
 +
The supplied revision ID parameter should be the revision ID of the version of the source page that was the basis of the translation (see example below).
  
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.
+
If the latest revision ID of the source page is different from the supplied revision ID, this template produces a link which leads to a differences list of the source page, between the supplied revision ID and the latest revision ID of the page.
  
'''''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.)''
+
In this way, any user can see what changed in the source page since it was last translated. The user can then easily bring the translation back into synch with the source, by translating the changes shown in the diff list. When doing so, the revision ID should be updated to reflect the new basis of translation.
  
It is used in template <code><nowiki>{{Translated From}}</nowiki></code>, to place a "synchronise" link next to the appropriate language.
+
'''''Note:''' You can find the revision ID of any revision of a page, by visiting the corresponding history and moving the pointer above any of the shown revisions; the revision number appears at the bottom of the browser window (in IE, at least.)''
  
 
== Example ==
 
== Example ==
Line 21: Line 27:
 
<pre>{{Diff since trans|Main Page|34884}}</pre>
 
<pre>{{Diff since trans|Main Page|34884}}</pre>
  
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):
+
in [[Pt:Página principal]], produces 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}}
Line 30: Line 36:
  
 
{{Translations
 
{{Translations
  | articles=Template:Pt:Diferenças desde a tradução
+
| articles = Template:Pt:Diferenças desde a tradução
 
}}
 
}}
  

Revision as of 16:03, 25 April 2011

Every translation is the translation of a source page. That source page changes through time, and the translation becomes outdated.

Template Diff since trans verifies if the revision ID of a source page has changed. If it has, the template produces a link to what changes were done to the source page since that revision.

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

Use

{{Diff since trans|source page|revision ID}}

The supplied revision ID parameter should be the revision ID of the version of the source page that was the basis of the translation (see example below).

If the latest revision ID of the source page is different from the supplied revision ID, this template produces a link which leads to a differences list of the source page, between the supplied revision ID and the latest revision ID of the page.

In this way, any user can see what changed in the source page since it was last translated. The user can then easily bring the translation back into synch with the source, by translating the changes shown in the diff list. When doing so, the revision ID should be updated to reflect the new basis of translation.

Note: You can find the revision ID of any revision of a page, by visiting the corresponding history and moving the pointer above any of the shown revisions; the revision number appears at the bottom of the browser window (in IE, at least.)

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, produces 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