Toggle menu
15
236
70
27.6K
Kenshi Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.
No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly>
{{Documentation subpage}}
{{Languages|Template:Yesno/doc}}
<!-- Place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
</includeonly>
{{Template shortcut|yn}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
{{tlx|Yesno}} (or {{tlg|YesNo|nolink=on|code=on}}) evaluates any input and produces a normalized <samp>yes</samp> or nil output, based on the content of the input and several configurable options. It is not used in article prose, but in coding complex templates.


This template normalises an input to be a yes/no output.
== Usage ==
The template distinguishes five different types of input, supplied on the first unnamed parameter:
# '''Yes''': Case-insensitive forms of <code>Yes</code>, <code>y</code>, <code>true</code>, <code>on</code>, and <code>1</code>; e.g. {{tlx|Yesno|yEs}} &rarr; {{Yesno|yEs}}
# '''No''': Case-insensitive forms of <code>No</code>, <code>n</code>, <code>false</code>, <code>off</code>, and <code>0</code>; e.g. {{tlx|Yesno|nO}} &rarr; {{Yesno|nO}}
# '''Nothing''': When the input is defined but either contains no value or consists of [[whitespace character]] only; i.e. <code><nowiki>{{Yesno|}}</nowiki></code> or {{tlx|Yesno|&nbsp;}} &rarr; {{Yesno|}}
# '''Negation''': When the input is either <code>¬</code> ([[alt code]] [https://www.rapidtables.com/code/text/alt-codes.html 170]) or entirely missing; i.e. {{tlx|Yesno|¬}} or {{tlx|Yesno}} &rarr; {{Yesno|¬}}
# '''Anything else''': e.g. {{tlx|Yesno|Purple monkey dish washer}} &rarr; {{Yesno|Purple monkey dish washer}}
 
By default, the template returns "yes" in the first and last case but returns nil (blank, empty string) in the other cases.
 
Two short-hand templates for the most common uses that override the default behavior:
* {{tlx|yesno-yes}} or {{tlg|YesNo-Yes|nolink=on|code=on}} – always returns "yes" (or the specified replacement result in {{para|yes}}) unless an explicit negative value is given; i.e., it evaluates to "yes" even when the value is empty or missing.
* {{tlx|yesno-no}} or {{tlg|YesNo-No|nolink=on|code=on}} – always returns "no" (or the specified replacement result in {{para|no}}) unless an explicit positive value is given; i.e., it evaluates to "no" even when the value is present, as long as it does not contain anything that resolves to "yes".


== Usage ==
===Customizing the output===
The template has five possible outputs depending on the default parameter (input if you will).
Template's default output can be customized with five named parameters, respectively: {{para|yes}}, {{para|no}}, {{para|blank}}, {{para|¬}} and {{para|def}}. If these parameters are specified, the template response is as follows:
# '''Yes''': Template returns the contents of {{para|yes}}, otherwise returns "yes". For example:
#* {{tlx|yesno|y|3=yes=Yeah}} results in "{{yesno|y|yes=Yeah}}"
#* {{tlx|yesno|y|3=yes=bacon}}  results in "{{yesno|y|yes=bacon}}"
# '''No''': Template returns the contents of {{para|no}}, otherwise returns blank. For example:
#* {{tlx|yesno|n|3=no=Nay}} results in "{{yesno|n|no=Nay}}"
#* {{tlx|yesno|n|3=no=ham}} results in "{{yesno|n|no=ham}}"
# '''Nothing''': Template returns the contents of {{para|blank}}, or of {{para|no}} in absence of the former; otherwise, returns blank.
#* {{tlx|yesno||3=blank=eggs}} results in "{{yesno||blank=eggs}}"
#* {{tlx|yesno||3=no=ham}} results in "{{yesno||no=ham}}"
#* {{tlx|yesno||3=blank=eggs|4=no=ham}} results in "{{yesno||blank=eggs|no=ham}}"
# '''Negation''': Template returns the contents of {{para|¬}}, otherwise returns blank. For example:
#* {{tlx|yesno|¬|3=¬=sausage}} results in "{{yesno|¬|¬=sausage}}"
# '''Anything else''': Template returns the contents of {{para|def}}, or of {{para|yes}} in absence of the former; otherwise, returns "yes".
#* {{tlx|yesno|purple monkey dish washer|3=def=cup of tea}} results in "{{yesno|purple monkey dish washer|def=cup of tea}}"
#* {{tlx|yesno|purple monkey dish washer|3=yes=bacon}} results in "{{yesno|purple monkey dish washer|yes=bacon}}"
#* {{tlx|yesno|purple monkey dish washer|3=def=cup of tea|4=yes=bacon}} results in "{{yesno|purple monkey dish washer|def=cup of tea|yes=bacon}}"


In its simplest usage, these will all be either "yes" or "" (blank = nothing no characters).
For the named parameters, use of a blank value is not the same as omitting the parameter. A blank named parameter tells the template that the customized return value is blank. For example:
* {{tlx|yesno|purple monkey dish washer}} results in "{{yesno|purple monkey dish washer}}"
* {{tlx|yesno|purple monkey dish washer|3=def=}} results in "{{yesno|purple monkey dish washer|def=}}" {{var|[blank]}}


* {{Tlx|Yesno|yes}} → "yes" (also applies to "Yes", "YeS", etc, "Y", "y" and "1") 
===Logical distinctions===
* {{Tlx|Yesno|no}} → "" (also applies to "No", "NO", "nO", "N", "n" and "0")
* {{Tlx|Yesno}} → ""
* {{Tlx|Yesno|¬}} → ""
* {{Tlx|Yesno|purplemonkeydishwasher}} → "yes" (also applies to any other value not given above)


Each of these can be over-ridden.
{| class=wikitable style="text-align:left; width:100%;"
|-
! colspan=7 style="background:#d0d0d0;" | Overview of {{tlx|yesno}} ''logical values'' and their associated texts
|- style="text-align:left; vertical-align:top; font-weight:bold; background:#e8e8e8;"
| Input<br />parameter 1<br />({{code|1=1=}})
| In code
| Logical return value
| Default<br />return text
|
| Return text when set:<br />{{code|1=yes=Pos}}<br />{{code|1=no=Neg}}<br />{{code|1=blank=Blank}}<br />{{code|1=¬=Undefined}}<br />{{code|1=def=Def}}
| Note
|-
| yes, y, true, 1*
| {{code|1=<nowiki>{{yesno|yes}}</nowiki>}}
| {{nowrap|{{code|yes by definition}}}}
| "{{yesno|yes}}"
|
| "{{yesno|yes|yes=Pos|no=Neg|blank=Blank|¬=Undefined|def=Def}}"
| <nowiki>*</nowiki> Case-insensitive (Y=y)
|-
| {{nowrap|Some Text}}
| {{nowrap|{{code|1=<nowiki>{{yesno|Some Text}}</nowiki>}}}}
| {{code|yes by default}}
| "{{yesno|Some Text}}"
|
| "{{yesno|Some Text|yes=Pos|no=Neg|blank=Blank|¬=Undefined|def=Def}}"
| "{{yesno|Some Text|yes=Pos|no=Neg|blank=Blank|¬=Undefined}}" when {{nowrap|1=<code>def={{var|[omitted]}}</code>}}
|-
| no, n, false, 0*
| {{code|1=<nowiki>{{yesno|no}}</nowiki>}}
| {{code|no by definition}}
| "{{yesno|no}}" {{var|[blank]}}
|
| "{{yesno|no|yes=Pos|no=Neg|blank=Blank|¬=Undefined|def=Def}}"
| <nowiki>*</nowiki> Case-insensitive (N=n)
|-
| {{var|[blank]}}
| {{code|1=<nowiki>{{yesno|}}</nowiki>}}
| {{code|blank}}
| "{{yesno|1=}}" {{var|[blank]}}
|
| "{{yesno||yes=Pos|no=Neg|blank=Blank|¬=Undefined|def=Def}}"
| "{{yesno||yes=Pos|no=Neg|¬=Undefined|def=Def}}" when {{nowrap|1=<code>blank={{var|[omitted]}}</code>}}
|-
| 1={{var|[blank]}}
| {{code|1=<nowiki>{{yesno|1=}}</nowiki>}}
| {{code|blank}}
| "{{yesno|1=}}" {{var|[blank]}}
|
| "{{yesno|1=|yes=Pos|no=Neg|blank=Blank|¬=Undefined|def=Def}}"
| "{{yesno|1=|yes=Pos|no=Neg|¬=Undefined|def=Def}}" when {{nowrap|1=<code>blank={{var|[omitted]}}</code>}}
|-
| ¬
| {{code|1=<nowiki>{{yesno|¬}}</nowiki>}}
| {{code|¬}}
| "{{yesno|¬}}" {{var|[blank]}}
|
| "{{yesno|¬|yes=Pos|no=Neg|blank=Blank|¬=Undefined|def=Def}}"
|
|-
| {{var|[omitted]}}
| {{code|1=<nowiki>{{yesno}}</nowiki>}}
| {{code|¬}}
| "{{yesno}}" {{var|[blank]}}
|
| "{{yesno|yes=Pos|no=Neg|blank=Blank|¬=Undefined|def=Def}}"
|
|}


* {{Tlx|Yesno|yes|yes{{=}}bacon}} → "{{Yesno|yes|yes=bacon}}" (also applies to "Yes", "YeS", etc, "Y", "y" and "1"
{| class="wikitable"
* {{Tlx|Yesno|no|no{{=}}ham}} → "{{Yesno|no|no=ham}}" (also applies to "No", "NO", "nO", "N", "n" and "0")
|-
* {{Tlx|Yesno||blank{{=}}eggs}} → "{{Yesno||blank=eggs}}"
! colspan="4" style="background:#d0d0d0;" | Comparison with related templates
** but {{Tlx|Yesno||no{{=}}ham}} "{{Yesno||no=ham}}"  
|- style="text-align:left; vertical-align:top; font-weight:bold; background:#e8e8e8;"
** and {{Tlx|Yesno||blank{{=}}eggs|no{{=}}ham}} → "{{Yesno||blank=eggs|no=ham}}"  
| Input parameter 1 ({{code|1=1=}})
* {{Tlx|Yesno|¬|¬{{=}}sausage|blank{{=}}eggs|no{{=}}ham}} → "{{Yesno|¬|¬=sausage|blank=eggs|no=ham}}"
| {{tl|yesno}}
** and {{Tlx|Yesno|¬{{=}}sausage|blank{{=}}eggs|no{{=}}ham}} → "{{Yesno|¬=sausage|blank=eggs|no=ham}}"
| {{tl|yesno-yes}}
* {{Tlx|Yesno|purplemonkeydishwasher|def{{=}}cup-of-tea}} "{{Tlx|Yesno|purplemonkeydishwasher|def{{=}}cup-of-tea}}" (also applies to any other value not given above)
| {{tl|yesno-no}}
** but {{Tlx|Yesno|purplemonkeydishwasher|yes{{=}}bacon}} "{{Yesno|purplemonkeydishwasher|yes=bacon}}"
|-
** and {{Tlx|Yesno|purplemonkeydishwasher|def{{=}}cup-of-tea|yes{{=}}bacon}} → "{{Yesno|purplemonkeydishwasher|def=cup-of-tea|yes=bacon}}"  
| yes, y, true, 1*
| "{{yesno|yes}}"
| "{{yesno-yes|yes}}"
| "{{yesno-no|yes}}"
|-
| {{nowrap|Some Text}}
| "{{yesno|Some Text}}"
| "{{yesno-yes|Some Text}}"
| "{{yesno-no|Some Text}}"
|-
| no, n, false, 0*
| "{{yesno|no}}" {{var|[blank]}}
| "{{yesno-yes|no}}"
| "{{yesno-no|no}}"
|-
| {{var|[blank]}}
| "{{yesno|1=}}" {{var|[blank]}}
| "{{yesno-yes|1=}}"
| "{{yesno-no|1=}}"
|-
| 1={{var|[blank]}}
| "{{yesno|1=}}" {{var|[blank]}}
| "{{yesno-yes|1=}}"
| "{{yesno-no|1=}}"
|-
| ¬
| "{{yesno|¬}}" {{var|[blank]}}
| "{{yesno-yes|¬}}"
| "{{yesno-no|¬}}"
|-
| {{var|[omitted]}}
| "{{yesno}}" {{var|[blank]}}
| "{{yesno-yes}}"
| "{{yesno-no}}"
|}


This may be used (apparently perversely) thus:
== Full parameter list ==
Unnamed parameter 1= the input value to be evaluated. The other parameters (all named, all optional), are the ''return values'' for their respective logical outcome. When set, each one overrules their ''default return value''.


* {{Tlx|Yesno|yes|yes{{=}}no|no{{=}}yes}} → "{{Yesno|yes|yes=no|no=yes}}"
{{tj|yesno
* {{Tlx|Yesno|no|yes{{=}}no|no{{=}}yes}} → "{{Yesno|no|yes=no|no=yes}}"
  | Input value
  | yes: Output on yes
  | no: Output on no
  | blank: Output on blank input
  | ¬: Output on ¬
  | def: Definite output
}}


This creates a logical inversion.
== See also ==
* {{unichar|AC|NOT SIGN|html=}}
* [[Module:yesno]]
* {{tlx|Yesno-yes}} – variant of Yesno that defaults to "yes" if value is not explicitly negative
* {{tlx|Yesno-no}} – variant of Yesno that defaults to "no" if value is not explicitly positive


== TemplateData ==
== TemplateData ==
Line 41: Line 179:
<templatedata>
<templatedata>
{
{
"description": {
"description": "This template normalises an input to be a yes or nil output.",
"en": "This template normalises an input to be a yes or nil output.",
"cs": "Tato šablona normalizuje vstup tak, aby bylo výstupem ano nebo nula.",
"tr": "Bu şablon, bir girişi evet veya sıfır çıkışı olacak şekilde normalleştirir."
},
"format": "inline",
"params": {
"params": {
"1": {
"1": {
"label": {
"label": "Input value",
"en": "Input value",
"description": "The value to be evaluated",
"cs": "Vstupní hodnota",
"tr": "Giriş değeri"
},
"description": {
"en": "The value to be evaluated.",
"cs": "Hodnota, která má být vyhodnocena.",
"tr": "Değerlendirilecek değer."
},
"type": "string",
"type": "string",
"required": true
"suggested": true
},
},
"yes": {
"yes": {
"label": {
"label": "Output on yes",
"en": "Output on yes",
"description": "Specifies the output of the template when the input value is a case-insensitive forms of 'Yes', 'Y', 'True' or '1'",
"cs": "Výstup na ano",
"tr": "Yes üzerinde çıkış"
},
"description": {
"en": "Specifies the output of the template when the input value is a case-insensitive forms of 'Yes', 'Y', 'True' or '1'.",
"cs": "Určuje výstup šablony, když je vstupní hodnota ve tvaru Yes', 'Y', 'True' nebo '1' bez ohledu na velikost písmen.",
"tr": "Giriş değeri büyük/küçük harfe duyarsız bir 'Yes', 'Y', 'True' veya '1' olduğunda şablonun çıkışı belirtir."
},
"type": "string",
"type": "string",
"required": false
"required": false
},
},
"no": {
"no": {
"label": {
"label": "Output on no",
"en": "Output on no",
"description": "Specifies the output of the template when the input value is a case-insensitive forms of 'No', 'N', 'False, or '0'",
"cs": "Výstup na ne",
"tr": "No üzerinde çıkış"
},
"description": {
"en": "Specifies the output of the template when the input value is a case-insensitive forms of 'No', 'N', 'False', or '0'.",
"cs": "Určuje výstup šablony, když je vstupní hodnota ve tvaru 'No', 'N', 'False' nebo '0' bez ohledu na velikost písmen.",
"tr": "Giriş değeri büyük/küçük harfe duyarlı olmayan 'No', 'N', 'False' veya '0' biçimleri olduğunda şablonun çıktısını belirtir."
},
"type": "string",
"type": "string",
"required": false
"required": false
},
},
"blank": {
"blank": {
"label": {
"label": "Output on blank input",
"en": "Output on blank input",
"description": "Specifies the output of the template when the input value is defined but is either empty or contains nothing but whitespace character(s)",
"cs": "Výstup na prázdném vstupu",
"tr": "Boş girişte çıkış"
},
"description": {
"en": "Specifies the output of the template when the input value is defined but is either empty or contains nothing but whitespace character(s).",
"cs": "Určuje výstup šablony, když je vstupní hodnota definována, ale je buď prázdná nebo neobsahuje nic než prázdné znaky.",
"tr": "Giriş değeri tanımlandığında, ancak boş olduğunda veya boşluk karakter(ler)inden başka bir şey içermediğinde şablonun çıkışını belirtir."
},
"type": "string",
"type": "string",
"required": false
"required": false
},
},
"¬": {
"¬": {
"label": {
"label": "Output on ¬",
"en": "Output on ¬",
"description": "Specifies the output of the template when the input value is either '¬' (negation) or entirely missing (undefined)",
"cs": "Výstup na ¬",
"tr": "¬ üzerinde çıkış"
},
"description": {
"en": "Specifies the output of the template when the input value is either '¬' or entirely missing (undefined).",
"cs": "Určuje výstup šablony, když je vstupní hodnota buď '¬' nebo zcela chybí (nedefinována).",
"tr": "Giriş değeri '¬' veya tamamen eksik (tanımsız) olduğunda şablonun çıkışını belirtir."
},
"type": "string",
"type": "string",
"required": false
"required": false
},
},
"def": {
"def": {
"label": {
"label": "Definite output",
"en": "Definite output",
"description": "Specifies the output of the template when the input value is defined but not a form of 'yes', 'no', '1', '0', '¬' or blank",
"cs": "Určený výstup",
"tr": "Kesin çıkışı"
},
"description": {
"en": "Specifies the output of the template when the input value is defined but not a form of 'yes', 'no', '1', '0', '¬' or blank.",
"cs": "Určuje výstup šablony, když je definována vstupní hodnota, ale ne ve tvaru 'ano', 'ne', '1', '0', '¬' nebo prázdná.",
"tr": "Giriş değeri tanımlandığında ancak bir 'yes', 'no', '1', '0', '¬' veya boş şeklinde tanımlanmadığında şablonun çıkışını belirtir."
},
"type": "string",
"type": "string",
"required": false
"required": false
Line 136: Line 221:
</templatedata>
</templatedata>


== See also ==
<includeonly>{{Sandbox other||
* [[Module:Yesno]]
 
<!----CATEGORIES BELOW THIS LINE, PLEASE:---->
 


<includeonly>{{Sandbox other||
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[Category:Utility templates{{#translation:}}]]
}}</includeonly>
}}</includeonly>
[[Category:Pages with syntax highlighting errors|Yesno/doc]]
[[Category:Template documentation pages|Yesno/doc]]

Latest revision as of 02:45, 8 June 2025

{{Yesno}} (or {{YesNo}}) evaluates any input and produces a normalized yes or nil output, based on the content of the input and several configurable options. It is not used in article prose, but in coding complex templates.

Usage

The template distinguishes five different types of input, supplied on the first unnamed parameter:

  1. Yes: Case-insensitive forms of Yes, y, true, on, and 1; e.g. {{Yesno|yEs}} → yes
  2. No: Case-insensitive forms of No, n, false, off, and 0; e.g. {{Yesno|nO}}
  3. Nothing: When the input is defined but either contains no value or consists of whitespace character only; i.e. {{Yesno|}} or {{Yesno| }}
  4. Negation: When the input is either ¬ (alt code 170) or entirely missing; i.e. {{Yesno|¬}} or {{Yesno}}
  5. Anything else: e.g. {{Yesno|Purple monkey dish washer}} → yes

By default, the template returns "yes" in the first and last case but returns nil (blank, empty string) in the other cases.

Two short-hand templates for the most common uses that override the default behavior:

  • {{yesno-yes}} or {{YesNo-Yes}} – always returns "yes" (or the specified replacement result in |yes=) unless an explicit negative value is given; i.e., it evaluates to "yes" even when the value is empty or missing.
  • {{yesno-no}} or {{YesNo-No}} – always returns "no" (or the specified replacement result in |no=) unless an explicit positive value is given; i.e., it evaluates to "no" even when the value is present, as long as it does not contain anything that resolves to "yes".

Customizing the output

Template's default output can be customized with five named parameters, respectively: |yes=, |no=, |blank=, |¬= and |def=. If these parameters are specified, the template response is as follows:

  1. Yes: Template returns the contents of |yes=, otherwise returns "yes". For example:
    • {{yesno|y|yes=Yeah}} results in "Yeah"
    • {{yesno|y|yes=bacon}} results in "bacon"
  2. No: Template returns the contents of |no=, otherwise returns blank. For example:
    • {{yesno|n|no=Nay}} results in "Nay"
    • {{yesno|n|no=ham}} results in "ham"
  3. Nothing: Template returns the contents of |blank=, or of |no= in absence of the former; otherwise, returns blank.
    • {{yesno|blank=eggs}} results in "eggs"
    • {{yesno|no=ham}} results in "ham"
    • {{yesno|blank=eggs|no=ham}} results in "eggs"
  4. Negation: Template returns the contents of |¬=, otherwise returns blank. For example:
    • {{yesno|¬|¬=sausage}} results in "sausage"
  5. Anything else: Template returns the contents of |def=, or of |yes= in absence of the former; otherwise, returns "yes".
    • {{yesno|purple monkey dish washer|def=cup of tea}} results in "cup of tea"
    • {{yesno|purple monkey dish washer|yes=bacon}} results in "bacon"
    • {{yesno|purple monkey dish washer|def=cup of tea|yes=bacon}} results in "cup of tea"

For the named parameters, use of a blank value is not the same as omitting the parameter. A blank named parameter tells the template that the customized return value is blank. For example:

  • {{yesno|purple monkey dish washer}} results in "yes"
  • {{yesno|purple monkey dish washer|def=}} results in "" [blank]

Logical distinctions

Overview of {{yesno}} logical values and their associated texts
Input
parameter 1
(1=)
In code Logical return value Default
return text
Return text when set:
yes=Pos
no=Neg
blank=Blank
¬=Undefined
def=Def
Note
yes, y, true, 1* {{yesno|yes}} yes by definition "yes" "Pos" * Case-insensitive (Y=y)
Some Text {{yesno|Some Text}} yes by default "yes" "Def" "Pos" when def=[omitted]
no, n, false, 0* {{yesno|no}} no by definition "" [blank] "Neg" * Case-insensitive (N=n)
[blank] {{yesno|}} blank "" [blank] "Blank" "Neg" when blank=[omitted]
1=[blank] {{yesno|1=}} blank "" [blank] "Blank" "Neg" when blank=[omitted]
¬ {{yesno|¬}} ¬ "" [blank] "Undefined"
[omitted] {{yesno}} ¬ "" [blank] "Undefined"
Comparison with related templates
Input parameter 1 (1=) {{yesno}} {{yesno-yes}} {{yesno-no}}
yes, y, true, 1* "yes" "yes" "yes"
Some Text "yes" "yes" "no"
no, n, false, 0* "" [blank] "no" "no"
[blank] "" [blank] "yes" "no"
1=[blank] "" [blank] "yes" "no"
¬ "" [blank] "yes" "no"
[omitted] "" [blank] "yes" "no"

Full parameter list

Unnamed parameter 1= the input value to be evaluated. The other parameters (all named, all optional), are the return values for their respective logical outcome. When set, each one overrules their default return value.

{{yesno
| Input value
| yes = Output on yes
| no = Output on no
| blank = Output on blank input
| ¬ = Output on ¬
| def = Definite output
}}

See also

  • U+00AC ¬ NOT SIGN (&not;)
  • Module:yesno
  • {{Yesno-yes}} – variant of Yesno that defaults to "yes" if value is not explicitly negative
  • {{Yesno-no}} – variant of Yesno that defaults to "no" if value is not explicitly positive

TemplateData

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Yesno in articles based on its TemplateData.

TemplateData for Yesno

This template normalises an input to be a yes or nil output.

Template parameters

ParameterDescriptionTypeStatus
Input value1

The value to be evaluated

Stringsuggested
Output on yesyes

Specifies the output of the template when the input value is a case-insensitive forms of 'Yes', 'Y', 'True' or '1'

Stringoptional
Output on nono

Specifies the output of the template when the input value is a case-insensitive forms of 'No', 'N', 'False, or '0'

Stringoptional
Output on blank inputblank

Specifies the output of the template when the input value is defined but is either empty or contains nothing but whitespace character(s)

Stringoptional
Output on ¬¬

Specifies the output of the template when the input value is either '¬' (negation) or entirely missing (undefined)

Stringoptional
Definite outputdef

Specifies the output of the template when the input value is defined but not a form of 'yes', 'no', '1', '0', '¬' or blank

Stringoptional