Template:Yes-or-no: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Catherine Woodgold
(creating template to parse "YES","Yes" etc. to be called by other templates.)
 
imported>Chris Day
No edit summary
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
Do not use this template yet.  It needs to be tested.


The purpose of this template is to allow the source code of Template:checklist
The purpose of this template is to allow the source code of Template:checklist
Line 6: Line 5:


What this template does:
What this template does:
It takes a parameter "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","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>
Line 14: Line 13:
| YES = YES
| YES = YES
| Yes = YES
| Yes = YES
| yes = YES
| Y = YES
| Y = YES
| y = YES
| y = YES
| NO = NO
| NO = NO
| No = NO
| No = NO
| no = NO
| N = NO
| N = NO
| n = NO
| n = NO
| UNKNOWN
| UNKNOWN
}}
}}

Latest revision as of 12: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