Template:Boolean/doc
This template parses a boolean value. It should generally be used in other templates.
Usage
This template takes 1
, true
, yes
and y
and parses them into y
, and any other strings into n
. The parsed values are regularly used in this wiki.
Code | Output |
---|---|
{{boolean|1}} |
y |
{{boolean|true}} |
y |
{{boolean|yes}} |
y |
{{boolean|y}} |
y |
{{boolean|0}} |
n |
{{boolean|false}} |
n |
{{boolean|no}} |
n |
{{boolean|n}} |
n |
{{boolean|This is not a boolean}} |
n |