Difference between revisions of "Template:Modification"
Jump to navigation
Jump to search
Line 50: | Line 50: | ||
--><!-- set Parent Modifications | --><!-- set Parent Modifications | ||
-->{{SetMultipleValues|values={{{Parent Modifications|}}}|property=Parent Modifications|excludeself=yes}}<!-- | -->{{SetMultipleValues|values={{{Parent Modifications|}}}|property=Parent Modifications|excludeself=yes}}<!-- | ||
+ | --><!-- | ||
+ | --><!-- store the list of not accepted parents (deduce from the list of parent modifications) | ||
+ | -->{{#arraydefine:parentsArray|{{GetPropertyValues|object={{FULLPAGENAME}}|property=Parent Modifications}} }}<!-- | ||
+ | -->{{#arrayunique:parentsArray}}<!-- | ||
+ | -->{{#arrayprint:parentsArray||@@@@|<!-- | ||
+ | -->{{#ifeq: {{#show: @@@@|?Verdict}}|Not Accepted|{{#set:Not Accepted Parent=@@@@}}|}}<!-- | ||
+ | -->}}<!-- print | ||
--><!-- | --><!-- | ||
--><!-- set Incompatible Modifications | --><!-- set Incompatible Modifications | ||
Line 55: | Line 62: | ||
--><!-- | --><!-- | ||
--><!-- set the questions answered (deduce from the list of To Accept theories) | --><!-- set the questions answered (deduce from the list of To Accept theories) | ||
− | |||
-->{{#arraydefine:theoriesArray|{{{To Accept|}}} }}<!-- | -->{{#arraydefine:theoriesArray|{{{To Accept|}}} }}<!-- | ||
-->{{#arrayunique:theoriesArray}}<!-- | -->{{#arrayunique:theoriesArray}}<!-- | ||
Line 67: | Line 73: | ||
--><!-- if at least one of the parent modifications is not accepted, then neither is this one | --><!-- if at least one of the parent modifications is not accepted, then neither is this one | ||
-->|Not Accepted=<!-- | -->|Not Accepted=<!-- | ||
− | -->{{#set: Verdict=Not Accepted|Parent Verdict=Parent Not Accepted | + | -->{{#set: Verdict=Not Accepted|Parent Verdict=Parent Not Accepted}}<!-- |
+ | -->{{#set: Verdict Rationale=The modification was not accepted because its acceptance was contingent upon the acceptance of {{GetPropertyValues|object={{FULLPAGENAME}}|property=Not Accepted Parent|pretty=yes|link=all|intro=modifications |outro= which were|intro one=modification |outro one= which was}} deemed unacceptable. |}}<!-- | ||
-->{{SetDatePropertyValueFromAnotherProperty|property=Date Assessed|sourceobject={{PrintModificationEarliestNotAcceptedParentModification|modification={{FULLPAGENAME}} }}|sourceproperty=Date Assessed}}<!-- | -->{{SetDatePropertyValueFromAnotherProperty|property=Date Assessed|sourceobject={{PrintModificationEarliestNotAcceptedParentModification|modification={{FULLPAGENAME}} }}|sourceproperty=Date Assessed}}<!-- | ||
--><!-- if no parent modification is not accepted but at least one of them is still open, then so is this one | --><!-- if no parent modification is not accepted but at least one of them is still open, then so is this one | ||
− | -->|Open={{#set: Verdict=Open|Parent Verdict=Parent Open|Verdict Rationale=The modification can only become accepted once | + | -->|Open={{#set: Verdict=Open|Parent Verdict=Parent Open|Verdict Rationale=The modification can only become accepted once {{GetPropertyValues|object={{FULLPAGENAME}}|property=Parent Modifications|pretty=yes|link=all|intro=modifications |outro= all become|intro one=modification |outro one= becomes}} accepted.|}}<!-- |
--><!-- it the parent modification is accepted, then this one can have any one of the three verdicts | --><!-- it the parent modification is accepted, then this one can have any one of the three verdicts | ||
-->|Accepted=<!-- | -->|Accepted=<!-- |
Revision as of 01:46, 21 May 2017
This is the "Modification" template. It should be called in the following format:
{{Modification |Summary= |Community= |Date Suggested Era= |Date Suggested Year= |Date Suggested Month= |Date Suggested Day= |Date Suggested Approximate= |Resource= |Authors List= |Preamble= |Modification= |To Accept= |To Reject= |Parent Modifications= |Incompatible Modifications= |Verdict= |Date Assessed Era= |Date Assessed Year= |Date Assessed Month= |Date Assessed Day= |Date Assessed Approximate= |Verdict Rationale= |Superseded By= }}
Edit the page to see the template text.