Difference between revisions of "Template:PrintParentModificationsVerdict"

From Encyclopedia of Scientonomy
Jump to navigation Jump to search
 
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
This template is used to print the common verdict of a modification's parent modification. The template goes through the list of all parent modifications and checks if at least one of them ''Not Accepted''. The possible return values are:
+
This template is used to print the common verdict of a modification's parent modifications. The template goes through the list of all the parent modifications and checks their verdicts. The possible return values are:
 
* <code><nowiki>Not Accepted</nowiki></code> - returned if at least one of the parent modifications has a verdict of ''Not Accepted'';
 
* <code><nowiki>Not Accepted</nowiki></code> - returned if at least one of the parent modifications has a verdict of ''Not Accepted'';
 
* <code><nowiki>Open</nowiki></code> - returned if no parent modification has a verdict of ''Not Accepted'' and at least one of the parent modifications is ''Open'';
 
* <code><nowiki>Open</nowiki></code> - returned if no parent modification has a verdict of ''Not Accepted'' and at least one of the parent modifications is ''Open'';
 
* <code><nowiki>Accepted</nowiki></code> - returned if all the parent modifications have been ''Accepted''.
 
* <code><nowiki>Accepted</nowiki></code> - returned if all the parent modifications have been ''Accepted''.
  
'''NOTE:''' As any "printing" template, it doesn't store any values anywhere, but merely prints them on the page.
+
'''NOTE:''' As any "printing" template, it doesn't store any values anywhere, but merely returns them.
  
 
'''Parameters:'''
 
'''Parameters:'''

Latest revision as of 13:17, 21 May 2017

This template is used to print the common verdict of a modification's parent modifications. The template goes through the list of all the parent modifications and checks their verdicts. The possible return values are:

  • Not Accepted - returned if at least one of the parent modifications has a verdict of Not Accepted;
  • Open - returned if no parent modification has a verdict of Not Accepted and at least one of the parent modifications is Open;
  • Accepted - returned if all the parent modifications have been Accepted.

NOTE: As any "printing" template, it doesn't store any values anywhere, but merely returns them.

Parameters:

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