Template:Yesno/doc
- Description
- This template is used to coerce boolean input to something that can be used in
{{#if: }}
parse functions. - Syntax
- Type {{Yesno|<value>}}
- Sample output
- {{Yesno|<"1">}} gives...
- 1
- {{Yesno|<"9">}} gives...
TemplateData
This template normalizes an input to be a truthy or nil output.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Input value | 1 | The value to be evaluated | String | required |
Output on true | true | Specifies the output of the template when the input value is a case-insensitive forms of 'Yes', 'Y', 'True' or '1'
| String | optional |
Output on false | false | Specifies the output of the template when the input value is a case-insensitive forms of 'No', 'N', 'False, or '0'
| String | optional |
Output on blank input | blank | Specifies the output of the template when the input value is defined but is either empty or contains nothing but whitespace character(s)
| String | optional |
Output on ¬ | ¬ | Specifies the output of the template when the input value is either '¬' or entirely missing (undefined)
| String | optional |
Definite output | def | Specifies the output of the template when the input value is defined but not a form of 'yes', 'no', '1', '0', '¬' or blank
| String | optional |