Difference between revisions of "Template:Modification"
Jump to navigation
Jump to search
Line 64: | Line 64: | ||
-->{{#if: {{GetPropertyValues|object={{FULLPAGENAME}}|property=Parent Modifications|link=none}}<!-- | -->{{#if: {{GetPropertyValues|object={{FULLPAGENAME}}|property=Parent Modifications|link=none}}<!-- | ||
-->|<!-- if there are parents | -->|<!-- if there are parents | ||
+ | -->{{#switch: {{PrintParentModificationsVerdict|modification={{FULLPAGENAME}}<!-- | ||
+ | --><!-- if at least one of the parent modifications is not accepted, then neither is this one | ||
+ | -->|Not Accepted=<!-- | ||
+ | -->{{#set: Verdict=Not Accepted|Parent Verdict=Parent Not Accepted|Verdict Rationale=The modification was not accepted because its acceptance was contingent upon the acceptance of modification(s) {{GetPropertyValues|object={{FULLPAGENAME}}|property=Parent Modifications|pretty=yes|link=all}} at least one of which was deemed unacceptable.|}}<!-- | ||
+ | |||
+ | |||
+ | {{SetDatePropertyValueFromAnotherProperty|property=Date Assessed|sourceobject={{{Parent Modification|}}}|sourceproperty=Date Assessed}} | ||
+ | |||
+ | |||
+ | --><!-- 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 modification(s) {{GetPropertyValues|object={{FULLPAGENAME}}|property=Parent Modifications|pretty=yes|link=all}} become(s) accepted.|}}<!-- | ||
+ | --><!-- it the parent modification is accepted, then this one can have any one of the three verdicts | ||
+ | -->|Accepted=<!-- | ||
+ | -->{{#set: Verdict={{{Verdict|}}}|Parent Verdict=Parent Accepted|Verdict Rationale={{{Verdict Rationale|}}}|}}<!-- | ||
+ | -->{{SetDatePropertyValue|property=Date Assessed|year={{{Date Assessed Year|}}}|month={{{Date Assessed Month|}}}|day={{{Date Assessed Day|}}}|era={{{Date Assessed Era|}}}|approximate={{{Date Assessed Approximate|}}}|}}<!-- | ||
+ | --><!-- store the Superseded By values if own verdict is Not Accepted | ||
+ | -->{{#ifeq: {{{Verdict|}}}|Not Accepted<!-- | ||
+ | -->|{{#if: {{{Superseded By|}}}<!-- | ||
+ | -->|{{SetMultipleValues|values={{{Superseded By|}}}|property=Superseded By}}<!-- | ||
+ | -->}}<!-- if Superseded By | ||
+ | -->}}<!-- if verdict is Not Accepted | ||
+ | --><!-- | ||
+ | -->}}<!-- switch Parent's verdict | ||
+ | --><!-- | ||
+ | --><!-- else (no parents): store the regular values | ||
-->|{{#set: Verdict={{{Verdict|}}}|Verdict Rationale={{{Verdict Rationale|}}}|}}<!-- | -->|{{#set: Verdict={{{Verdict|}}}|Verdict Rationale={{{Verdict Rationale|}}}|}}<!-- |
Revision as of 21:24, 20 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.