Template:Checkbox

From QED

Jump to: navigation, search

Syntax: {{checkbox|STATE|TEXT}}

where both arguments are optional and:

  • STATE can be 0 (for unchecked) or 1 (for checked)
  • TEXT is text to follow the checkbox.

Note: this template produces an active checkbox that currently does nothing except toggle between the initial state and its opposite.


Examples

This... produces this:
{{checkbox}}
{{checkbox|0|off}} off
{{checkbox|1}}
{{checkbox|1|on}} on

See also

Personal tools