Sablon:Boolean/doc
Innen: SCWIKI
More actions
This is a documentation subpage for 'Sablon:Boolean'.
It contains usage information, categories, and other content that is not part of the original template page.
Renders a tri-state boolean as a machine-readable icon: a green check (yes), a grey cross (no), or an amber help glyph (unknown). The icon-only face of Module:Boolean; the value is normalised through Module:Yesno, so yes/1/true and no/0/false all work. Anything unrecognised (or an empty value) renders the unknown glyph.
Machine-readable three ways: a title tooltip, a data-state (yes/no/unknown) attribute, and visually-hidden text for screen readers.
Usage
{{Boolean|yes}}
{{Boolean|no}}
{{Boolean}}
Renders a tri-state boolean (yes / no / unknown) as a machine-readable icon.
| Paraméter | Leírás | Típus | Állapot | |
|---|---|---|---|---|
| Value | 1 | The boolean value. yes/1/true, no/0/false; empty or unrecognised renders the unknown glyph.
| Karakterlánc | nem kötelező |