Template:Boolean

From Kerbal Space Program Wiki
Revision as of 08:06, 16 September 2024 by ArnePeirs (talk | contribs) (Add template to check for boolean values)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This helper template will display {{Yes}} if its input is y, yes, t, true or 1.
Will display {{No}} if its input is n, no, f, false or 0.

If none of the inputs above match, will display the provided input. If you provide a second parameter, that works as default value, will display that.

Name Optional Description Default
1 No The boolean value.
2 Yes The default value to display if {{{1}}} doesn't match any boolean value. {{{1}}}