Template:Yes-or-no: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Stephen Ewen
m (Protected "Template:Yes-or-no": Makes sense to protect this [edit=sysop:move=sysop])
imported>Chris Day
No edit summary
 
Line 5: Line 5:


What this template does:
What this template does:
It takes a parameter "YES","Yes","yes","Y","y" etc. and returns "YES",
It takes a parameter "YES","Yes","yes","Y" or "y" and returns "YES",
or if the value of the input parameter is "NO","No","no","N","n" etc. it returns "NO",
or if the value of the input parameter is "NO","No","no","N" and "n" it returns "NO",
if the input parameter is something else it returns "UNKNOWN".
if the input parameter is something else it returns "UNKNOWN".
</noinclude>
</noinclude>

Latest revision as of 13:37, 8 September 2007


The purpose of this template is to allow the source code of Template:checklist to be simplified. (It may also be useful in other, future templates.)

What this template does: It takes a parameter "YES","Yes","yes","Y" or "y" and returns "YES", or if the value of the input parameter is "NO","No","no","N" and "n" it returns "NO", if the input parameter is something else it returns "UNKNOWN".


UNKNOWN