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>Catherine Woodgold
(adding "yes" and "no" (lowercase) option)
Line 6: Line 6:


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","y" etc. 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","n" etc. 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 14:
| 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
}}
}}

Revision as of 11:31, 6 April 2007

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 to be simplified. (It may also be useful in other, future templates.)

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


UNKNOWN