Template:Translation verification: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(fullpagename)
(Removed noticebox and updated documentation)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly>{{#ifeq: {{{revisionID}}} | {{REVISIONID: {{{pagename|{{FULLPAGENAME}} }}} }}
<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|text=
  | line-1   = This article could be outdated. The corresponding [[{{{pagename|{{FULLPAGENAME}} }}}|English article]] has been edited since this translation was verified.
  | line-2  = {{#if: {{{revisionID}}}
  | Check the [[Special:Diff/{{{revisionID}}}/{{REVISIONID: {{{pagename|{{FULLPAGENAME}} }}} }}|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|{{FULLPAGENAME}} }}}|English article]] and add its revision-ID to this template.
  }}
  | category = {{#ifeq: {{{category|}}} | false || Outdated translations }}
}} }}</includeonly><noinclude>
 
{{Documentation|text=


== Usage ==
== 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.
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]] (depending on its language). If it doesn't it is instead added to [[:Category:Outdated translations/de]].


On any translated page this template can simply be used like this:
This template should be placed on all translated pages right after the {{T|Languages}} template. Just copy the following text and fill in the revision-ID.


<pre>{{Translation verification|revisionID=}}</pre>
<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]]
[[Category:Localisation templates]]
}}</noinclude>
}}</noinclude>

Latest revision as of 15:37, 5 October 2023

[Create]

Documentation

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 (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 pages right after the {{Languages}} template. Just copy the following text and fill in the revision-ID.

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