Template:Translation verification: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
titleparts
Use separate documentation page
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
<includeonly>{{#ifeq: {{{revisionID}}} | {{REVISIONID: {{{pagename|{{#titleparts: {{FULLPAGENAME}} | -1 }} }}} }}
<includeonly>{{#ifeq: {{{revisionID}}} | {{REVISIONID: {{{pagename|{{#titleparts: {{FULLPAGENAME}} | -1 }} }}} }}
  | {{#ifeq: {{{category|}}} | false || {{Category|Verified translations}} }}
  | {{Category|Verified translations}}
  | {{Boilerplate
  | {{Category|Outdated translations}}
  | icon    = No-building-material-icon.png
}}</includeonly><noinclude>{{Documentation}}</noinclude>
  | line-1  = This article could be outdated. The corresponding [[{{{pagename|{{#titleparts: {{FULLPAGENAME}} | -1 }} }}}|English article]] has been edited since this translation was verified.
  | line-2  = {{#if: {{{revisionID}}}
  | Check the [[Special:Diff/{{{revisionID}}}/{{REVISIONID: {{{pagename|{{#titleparts: {{FULLPAGENAME}} | -1 }} }}} }}|changes]] made to the English page since the last verified translation and update this page accordingly. Don't forget to update the revision-ID in this template.
  | Update this translation to the latest revision of the [[{{{pagename|{{#titleparts: {{FULLPAGENAME}} | -1 }} }}}|English article]] and add its revision-ID to this template.
  }}
  | category = {{#ifeq: {{{category|}}} | false || Outdated translations }}
}} }}</includeonly><noinclude>
 
{{Documentation|text=
 
== Usage ==
This template is meant to be placed on all translated pages to provide an automated way to check whether a translation is still up to date. If the revision-ID provided to the template is the most recent edit of the corresponds English page, the page is added to a category like [[:Category:Verified translations/de]]. If it doesn't it is instead added to  [[:Category:Outdated translations/de]] and a notice-box is displayed.
 
On any translated page this template can simply be used like this:
 
<pre>{{Translation verification|revisionID=}}</pre>
 
However if necessary (like for the examples below), the pagename can be specified and the categories can be suppressed.
 
== Examples ==
=== Normal use ===
 
=== Outdated revision-ID ===
<pre>{{Translation verification|revisionID=172422|pagename=Iron plate|category=false}}</pre>
Produces:
{{Translation verification|revisionID=172422|pagename=Iron plate|category=false}}
 
=== No or invalid revision-ID ===
<pre>{{Translation verification|revisionID=|pagename=Iron plate|category=false}}</pre>
Produces:
{{Translation verification|revisionID=|pagename=Iron plate|category=false}}
 
=== Current revision-ID ===
<pre>{{Translation verification|revisionID={{REVISIONID: Iron plate }}|pagename=Iron plate|category=false}}</pre>
Would just add the page to the corresponding verification category, for example [[:Category:Verified translations/de]].
 
[[Category:Localisation templates]]
}}</noinclude>

Latest revision as of 21:05, 7 November 2025

[View] [Edit] [Page history]

Documentation

Usage

This template is meant to be placed only on translated pages in the article namespace (i.e. not on category or talk pages) to provide an automated way to check whether a translation is still up to date. If the revision-ID provided to the template is the most recent edit of the corresponds English page, the page is added to a category like Category:Verified translations/de (depending on its language). If it doesn't it is instead added to Category:Outdated translations/de.

This template should be placed on all translated articles right after the {{Languages}} template. Just copy the following text and fill in the revision-ID.

{{Translation verification|revisionID=}}
List of all templates