Template:Checkbox (colored)/doc
Appearance
![]() | This is a documentation subpage for Template:Checkbox (colored). It may contain usage information, categories and other content that is not part of the original template page. |
The template produces a styled checkbox that can be checked/unchecked, with options to change both the color and the presence of the tick mark.
Usage
[edit]This template takes one unnamed parameter and two named parameters
1
- This unnamed parameter is the checked/unchecked status. It accepts
checked
andunchecked
. The default is to have a checked box. color
- This parameter changes the color (see Modifications below)
tick
- If set to
no
, the tick mark will not be shown in the box.
Modifications
[edit]In addition to the default color black, this template also supports blue, green, orange, and red. Giving "black" as the color will result in the default display.
If a checkbox without the tick is desired, use the parameter |tick=no
to remove the tick mark from the check box.
Examples
[edit]{{Template:Checkbox (colored)|checked|color=blue}}
produces :{{Template:Checkbox (colored)|checked|color=blue|tick=no}}
produces :{{Template:Checkbox (colored)|unchecked|color=blue}}
produces :{{Template:Checkbox (colored)|checked|color=green}}
produces :{{Template:Checkbox (colored)|checked|color=green|tick=no}}
produces :{{Template:Checkbox (colored)|unchecked|color=green}}
produces :{{Template:Checkbox (colored)|checked|color=orange}}
produces :{{Template:Checkbox (colored)|checked|color=orange|tick=no}}
produces :{{Template:Checkbox (colored)|unchecked|color=orange}}
produces :{{Template:Checkbox (colored)|checked|color=black}}
produces :{{Template:Checkbox (colored)|checked|color=black|tick=no}}
produces :{{Template:Checkbox (colored)|unchecked|color=black}}
produces :{{Template:Checkbox (colored)|checked|color=red}}
produces :{{Template:Checkbox (colored)|checked|color=red|tick=no}}
produces :{{Template:Checkbox (colored)|unchecked|color=red}}
produces :
See also
[edit]- {{checkbox 1 (simple)}}
- {{checkbox 2 (simple)}}
- {{Radio button}}
- {{MediaWiki checkbox}}