Template:ChangesRobot: Difference between revisions
Jump to navigation
Jump to search
[unchecked revision] | [checked revision] |
No edit summary |
No edit summary |
||
(15 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}}[[category:DocumentationChanges/{{{2}}}]]{{#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}}[[category:ParentChanges/{{{2}}}]]{{#vardefine:rapport|{{#var:rapport}} | |||
The parents have changed.}}}}<!-- | |||
-->{{#ifeq:{{#var:children_{{PAGENAME}}/{{{1}}}}}|{{#var:children_{{PAGENAME}}/{{{2}}}}}||{{#vardefine:change|1}}[[category:ChildsChanges/{{{2}}}]]{{#vardefine:rapport|{{#var:rapport}} | |||
The children have changed.}}}}<!-- | |||
-->{{#ifeq:{{#var:attributes_{{PAGENAME}}/{{{1}}}}}|{{#var:attributes_{{PAGENAME}}/{{{2}}}}}||{{#vardefine:change|1}}[[category:AttributeChanges/{{{2}}}]]{{#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}} | ||
Removed with version {{{2}}}.{{#ifeq:{{{subschema}}}|CO|{{#ifexist:generic:{{{element}}}| There exists an element {{tag|generic|{{{element}}}|ex=1}} that might have replaced it. }}}}}}<!-- ifexist pagename 2 zu -->}}|{{#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}}}| There exists an element {{tag|CO|{{{element}}}|ex=1}} that might have preceded it. }}}}}}|<!-- | ||
Keines-->}}<!-- | Keines-->[[category:NoChanges/{{{2}}}]]<!-- Beide ifexist zu -->}}}}<!-- | ||
-->{{#ifeq:{{#var:change}}|1|{{#ifeq:{{#var:intro}}|0|[[category:Changes/{{{2}}}]] | -->{{#ifeq:{{#var:change}}|1|{{#ifeq:{{#var:intro}}|0|[[category:Changes/{{{2}}}]]}}{{#var:rapport}}|[[category:NoChanges/{{{2}}}]]}}</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 19:20, 25 September 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