Template:Bool/doc

This simple helper template will display  if its input is ,  ,  , or. It will not display anything otherwise, unless a display text is provided via the  parameter (for inputs ,  ,  , or  ). You can control what is displayed for an empty input via unnamed parameter 2, see examples below. This is useful for handling revert flag option parameters, such as, which empty input means "true".

This functionality is useful for templates where a parameter should only have an effect if it is set to one of these positive values. It is especially helpful for the integration of TemplateData, which sets a parameter that is marked as Boolean to 0 if it is added and de-selected.

Usage
The input string to check.
 * First unnamed parameter