Template:YesNo
Documentation
Usage
This template is used to make other templates by turning an input into either "Yes" or no text, so as to be able to accept multiple "true" or "false" inputs for certain functions. It transforms the input value into either "yes" or no text, as stated above. The following makes it return "yes":
1ttrueyesyon
The following makes the template return no text:
0ffalsenonoff
The template, as such, makes the following return one output if a true input is provided and another output if a false input is given in a template transclusion:
{{#if:{{YesNo|{{{1}}}}}|first output|second output}}
The same can also be done with {{YesNo|{{{1|}}}|yes=first output|no=second output}}. This is because the true and false values can also be customized in the template to return outputs other than "yes" or no text.