Template:ChangesRobot: Difference between revisions

From railML 3 Wiki
Jump to navigation Jump to search
[unchecked revision][checked revision]
No edit summary
No edit summary
 
(8 intermediate revisions by the same user not shown)
Line 5: Line 5:
}}<!--
}}<!--
-->{{#ifexist:{{PAGENAME}}/{{{1}}}|{{#ifexist:{{PAGENAME}}/{{{2}}}|<!--
-->{{#ifexist:{{PAGENAME}}/{{{1}}}|{{#ifexist:{{PAGENAME}}/{{{2}}}|<!--
Beide-->{{#ifeq:{{#var:documentation_{{PAGENAME}}/{{{1}}}}}|{{#var:documentation_{{PAGENAME}}/{{{2}}}}}||{{#vardefine:change|1}}
Beide-->{{#ifeq:{{#var:documentation_{{PAGENAME}}/{{{1}}}}}|{{#var:documentation_{{PAGENAME}}/{{{2}}}}}||{{#vardefine:change|1}}{{#vardefine:rapport|{{#var:rapport}}
The element documentation has been changed}}<!--
 
The element documentation has been changed.}}}}<!--
-->{{#ifeq:{{#var:parents_{{PAGENAME}}/{{{1}}}}}|{{#var:parents_{{PAGENAME}}/{{{2}}}}}||{{#vardefine:change|1}}{{#vardefine:rapport|{{#var:rapport}}
 
The parents have changed.}}}}<!--
-->{{#ifeq:{{#var:children_{{PAGENAME}}/{{{1}}}}}|{{#var:children_{{PAGENAME}}/{{{2}}}}}||{{#vardefine:change|1}}{{#vardefine:rapport|{{#var:rapport}}
 
The children have changed.}}}}<!--
-->{{#ifeq:{{#var:attributes_{{PAGENAME}}/{{{1}}}}}|{{#var:attributes_{{PAGENAME}}/{{{2}}}}}||{{#vardefine:change|1}}{{#vardefine:rapport|{{#var:rapport}}
 
The attributes have been changed.}}}}<!--
-->|<!--
-->|<!--
Nur 1-->{{#vardefine:change|1}}{{#vardefine:intro|1}}{{#vardefine:rapport|{{#var:rapport}}
Nur 1-->{{#vardefine:change|1}}{{#vardefine:intro|1}}{{#vardefine:rapport|{{#var:rapport}}
Deprecated with version {{{2}}}}}|{{#ifexist:{{PAGENAME}}/{{{2}}}}}}}|<!--
Removed with version {{{2}}}.{{#ifeq:{{{subschema}}}|CO|{{#ifexist:generic:{{{element}}}|&#32;There exists an element {{tag|generic|{{{element}}}|ex=1}} that might have replaced it.&#32;}}}}}}|{{#ifexist:{{PAGENAME}}/{{{2}}}}}}}|<!--
Nur 2-->{{#vardefine:change|1}}{{#vardefine:intro|1}}{{#vardefine:rapport|{{#var:rapport}}
Nur 2-->{{#vardefine:change|1}}{{#vardefine:intro|1}}{{#vardefine:rapport|{{#var:rapport}}
Introduced with version {{{2}}}}}|<!--
Introduced with version {{{2}}}.{{#ifeq:{{{subschema}}}|generic|{{#ifexist:CO:{{{element}}}|&#32;There exists an element {{tag|CO|{{{element}}}|ex=1}} that might have preceded it.&#32;}}}}}}|<!--
Keines-->}}<!--
Keines-->}}<!--
-->{{#ifeq:{{#var:change}}|1|{{#ifeq:{{#var:intro}}|0|[[category:Changes/{{{2}}}]]Kategorisiert}}{{#var:rapport}}}}</includeonly><noinclude>
-->{{#ifeq:{{#var:change}}|1|{{#ifeq:{{#var:intro}}|0|[[category:Changes/{{{2}}}]]}}{{#var:rapport}}}}</includeonly><noinclude>
==Usage==
==Usage==
This template compares two versions of an element and displays and categorizes changes. It is called by [[Template:Robot]]. The categories will be names ''Changes/<nowiki>{{{2}}}</nowiki>, e.g. [[:Category:Changes/3.2]]. The respective categories are supposed to be collected manually in [[:Category:Changes]].
This template compares two versions of an element and displays and categorizes changes. It is called by [[Template:Robot]]. The categories will be names ''Changes/<nowiki>{{{2}}}</nowiki>, e.g. [[:Category:Changes/3.2]]. The respective categories are supposed to be collected manually in [[:Category:Changes]].

Latest revision as of 13:14, 13 February 2024

Usage

This template compares two versions of an element and displays and categorizes changes. It is called by Template:Robot. The categories will be names Changes/{{{2}}}, e.g. Category:Changes/3.2. The respective categories are supposed to be collected manually in Category:Changes.

Arguments

  • 1: the old version
  • 2: the new version