| Template Documentation |
|---|
| Note: portions of the template sample may not be visible without values provided. |
| View or edit this documentation. (About template documentation) |
| Editors can experiment in this template's sandbox and test case pages. |
Notes:
A simple template that displays icons to indicate yes/no values, and other additional values.
This template is rarely used by itself, and it is mostly used to display the parameters of other templates.
Syntax:
Type in the following:{{Yes No|input|default=|inverse=}}
The default and inverse parameters are optional and can be omitted:
{{Yes No|input}}
| Parameter | Required | Usage |
|---|---|---|
input |
✓ | The input of the template. Note that this is not a named parameter, so it must be replaced. See the examples. |
default |
✗ | The value to use when the input is empty. Useful to handle empty values in templates. |
inverse |
✗ | Wether to invert the logic of the template or not. |
Example:
| Input | Output |
|---|---|
{{Yes No|yes}}
|
✓ |
{{Yes No|no}}
|
✗ |
{{Yes No|true}}
|
✓ |
{{Yes No|partial}}
|
⍻ |
{{Yes No|?}}
|
? |
{{Yes No|no|inverse=yes}}
|
✓ |
{{Yes No||default=yes}}
|
✓ |