Difference between revisions of "Template:Modification"

From Encyclopedia of Scientonomy
Jump to navigation Jump to search
Line 17: Line 17:
 
|To Accept=
 
|To Accept=
 
|To Reject=
 
|To Reject=
 +
|Parent Modifications=
 
|Incompatible Modifications=
 
|Incompatible Modifications=
|Parent Modification=
 
|Parent Verdict=
 
 
|Verdict=
 
|Verdict=
 
|Date Assessed Era=
 
|Date Assessed Era=
Line 48: Line 47:
 
--><!-- set To Reject theories
 
--><!-- set To Reject theories
 
-->{{SetMultipleValues|values={{{To Reject|}}}|property=To Reject}}<!--
 
-->{{SetMultipleValues|values={{{To Reject|}}}|property=To Reject}}<!--
 +
--><!--
 +
--><!-- set Parent Modifications
 +
-->{{SetMultipleValues|values={{{Parent Modifications|}}}|property=Parent Modifications|excludeself=true}}<!--
 
--><!--  
 
--><!--  
 
--><!-- set Incompatible Modifications
 
--><!-- set Incompatible Modifications
-->{{SetMultipleValues|values={{{Incompatible Modifications|}}}|property=Incompatible Modifications}}<!--
+
-->{{SetMultipleValues|values={{{Incompatible Modifications|}}}|property=Incompatible Modifications|excludeself=true}}<!--
 
--><!--  
 
--><!--  
 
--><!-- set the questions answered (deduce from the list of To Accept theories)
 
--><!-- set the questions answered (deduce from the list of To Accept theories)
Line 57: Line 59:
 
-->{{#arrayunique:theoriesArray}}<!--
 
-->{{#arrayunique:theoriesArray}}<!--
 
-->{{#arrayprint:theoriesArray||@@@@|{{#set:Answers Question={{#show: @@@@|?Topic|link=none}} }}|}}<!--  
 
-->{{#arrayprint:theoriesArray||@@@@|{{#set:Answers Question={{#show: @@@@|?Topic|link=none}} }}|}}<!--  
--><!--
+
 
--><!-- set the parent modification if the parent itself doesn't have a parent
+
 
-->{{#if: {{{Parent Modification|}}}| <!--
 
--><!--
 
--><!-- the parent cannot be self
 
-->{{#ifeq: {{{Parent Modification|}}}|{{FULLPAGENAME}}<!--
 
  --><!--
 
  -->|{{note}} The acceptance of a modification cannot depend upon itself: the parent modification should either be empty or refer to some other modification.<!--
 
  --><!--
 
  -->|{{#if: {{#show: {{{Parent Modification|}}} |?Parent Modification}} <!--
 
    --><!--
 
    -->|{{note}} A modification that itself has a parent modification cannot be a parent: the depth of the modification tree can not exceed 2 levels.<!--
 
    --><!-- all good - go ahead set the modification 
 
    -->|{{#set: Parent Modification={{{Parent Modification|}}}|}}<!--
 
    --><!--
 
    -->{{#switch: {{#show: {{{Parent Modification|}}} |?Verdict}}<!--
 
    --><!-- if the parent modification 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 [[{{{Parent Modification}}}|{{PAGENAME:{{{Parent Modification}}}}}]] which has been deemed unacceptable.|}}<!--
 
      -->{{SetDatePropertyValueFromAnotherProperty|property=Date Assessed|sourceobject={{{Parent Modification|}}}|sourceproperty=Date Assessed}}<!--
 
    --><!-- if the parent modification 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 [[{{{Parent Modification}}}|{{PAGENAME:{{{Parent Modification}}}}}]] is 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
 
    --><!--
 
  -->}}<!-- if the parent has a parent
 
  --><!--
 
-->}}<!-- ifeq parent=self
 
--><!--
 
--><!-- else: store the regular values
 
-->|{{#set: Verdict={{{Verdict|}}}|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
 
--><!--
 
-->}}<!-- if parent modification is given
 
 
--><!--  
 
--><!--  
 
--><!-- print the page  
 
--><!-- print the page  
Line 113: Line 67:
 
{{PrintModificationDetails|modification={{FULLPAGENAME}}|}}
 
{{PrintModificationDetails|modification={{FULLPAGENAME}}|}}
 
<!--
 
<!--
-->{{PrintModificationParentModification|modification={{FULLPAGENAME}}|}}<!--
+
-->{{PrintModificationParentModifications|modification={{FULLPAGENAME}}|}}<!--
 
-->{{PrintModificationIncompatibleModifications|modification={{FULLPAGENAME}}|}}<!--  
 
-->{{PrintModificationIncompatibleModifications|modification={{FULLPAGENAME}}|}}<!--  
 
-->{{PrintModificationVerdict|modification={{FULLPAGENAME}}|}}<!--
 
-->{{PrintModificationVerdict|modification={{FULLPAGENAME}}|}}<!--

Revision as of 21:04, 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.