Difference between revisions of "Template:PrintModificationEarliestNotAcceptedParentModification"

From Encyclopedia of Scientonomy
Jump to navigation Jump to search
(Created page with "<noinclude> This template goes through all the parent modifications of a modification and locates the earliest date when a parent modification was deemed not acceptable. It re...")
 
 
Line 8: Line 8:
  
 
</noinclude><includeonly><!--
 
</noinclude><includeonly><!--
-->{{#arraydefine: parentsArray|{{GetPropertyValues|object={{{modification|}}}|property=Parent Modifications|link=none}} }}<!--
+
-->{{#arraydefine: parentsArray|{{GetPropertyValues|object={{{modification|}}}|property=Not Accepted Parent|link=none}} }}<!--
 
-->{{#ifexpr: {{#arraysize: parentsArray}} > 0<!--   
 
-->{{#ifexpr: {{#arraysize: parentsArray}} > 0<!--   
 
  -->|<!-- there are parents
 
  -->|<!-- there are parents
Line 19: Line 19:
 
   -->|{{#ifexpr: ({{#var: i}} < {{#arraysize: parentsArray}}) and ({{#var: varContinue}} = 1)| true}}<!--
 
   -->|{{#ifexpr: ({{#var: i}} < {{#arraysize: parentsArray}}) and ({{#var: varContinue}} = 1)| true}}<!--
 
   -->|<!--  
 
   -->|<!--  
    --><!-- only consider the ones that were not accepted
+
 
    -->{{#ifeq: {{#show:{{#arrayindex: parentsArray| {{#var: i}} }}|?Verdict}}|Not Accepted<!--
 
    -->|<!--
 
 
       --><!-- store the Date Assessed as the current value  
 
       --><!-- store the Date Assessed as the current value  
 
       -->{{#vardefine: varCurDate| {{#show:{{#arrayindex: parentsArray| {{#var: i}} }}|?Date Assessed}} }}<!--
 
       -->{{#vardefine: varCurDate| {{#show:{{#arrayindex: parentsArray| {{#var: i}} }}|?Date Assessed}} }}<!--
Line 39: Line 37:
 
       -->}}<!-- if there is a stored value   
 
       -->}}<!-- if there is a stored value   
 
       -->}}<!-- if there is current value  
 
       -->}}<!-- if there is current value  
    -->}}<!-- if the verdict is Not Accepted
+
 
 
     --><!-- increase the counter  
 
     --><!-- increase the counter  
 
     -->{{#vardefine: i | {{#expr: {{#var: i}} + 1}} }}<!--
 
     -->{{#vardefine: i | {{#expr: {{#var: i}} + 1}} }}<!--

Latest revision as of 01:46, 21 May 2017

This template goes through all the parent modifications of a modification and locates the earliest date when a parent modification was deemed not acceptable. It returns the parent modification.

NOTE: As any "printing" template, it doesn't store any values anywhere, but merely prints them on the page.

Parameters:

  • |modification= - the modification whose verdict is to be printed.