|
|
Line 1: |
Line 1: |
| noinclude>{{Documentation subpage}}
| |
| </noinclude>
| |
|
| |
|
| 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==
| |
| This template takes one unnamed parameter and two named parameters
| |
| ;<code>1</code>:This unnamed parameter is the checked/unchecked status. It accepts <code>checked</code> and <code>unchecked</code>. The default is to have a checked box.
| |
| ;<code>color</code>:This parameter changes the color (see [[#Modifications|Modifications]] below)
| |
| ;<code>tick</code>:If set to <code>no</code>, the tick mark will not be shown in the box.
| |
|
| |
| ==Modifications==
| |
| 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 {{para|tick|no}} to remove the tick mark from the check box.
| |
| ==Examples==
| |
| {| class="wikitable"
| |
| |+
| |
| |-
| |
| ! Code !! Box
| |
| |-
| |
| | {{tlx|Checkbox (colored)|checked}}
| |
| | {{Checkbox (colored)|checked}}
| |
| |-
| |
| | {{tlx|Checkbox (colored)|unchecked}}
| |
| | {{Checkbox (colored)|unchecked}}
| |
| |-
| |
| | {{tlx|Checkbox (colored)|checked|color{{=}}blue}}
| |
| | {{Checkbox (colored)|checked|color=blue}}
| |
| |-
| |
| | {{tlx|Checkbox (colored)|checked|color{{=}}blue|tick{{=}}no}}
| |
| | {{Checkbox (colored)|checked|color=blue|tick=no}}
| |
| |-
| |
| | {{tlx|Checkbox (colored)|unchecked|color{{=}}blue}}
| |
| | {{Checkbox (colored)|unchecked|color=blue}}
| |
| |-
| |
| | {{tlx|Checkbox (colored)|checked|color{{=}}green}}
| |
| | {{Checkbox (colored)|checked|color=green}}
| |
| |-
| |
| | {{tlx|Checkbox (colored)|checked|color{{=}}green|tick{{=}}no}}
| |
| | {{Checkbox (colored)|checked|color=green|tick=no}}
| |
| |-
| |
| | {{tlx|Checkbox (colored)|unchecked|color{{=}}green}}
| |
| | {{Checkbox (colored)|unchecked|color=green}}
| |
| |-
| |
| | {{tlx|Checkbox (colored)|checked|color{{=}}orange}}
| |
| | {{Checkbox (colored)|checked|color=orange}}
| |
| |-
| |
| | {{tlx|Checkbox (colored)|checked|color{{=}}orange|tick{{=}}no}}
| |
| | {{Checkbox (colored)|checked|color=orange|tick=no}}
| |
| |-
| |
| | {{tlx|Checkbox (colored)|unchecked|color{{=}}orange}}
| |
| | {{Checkbox (colored)|unchecked|color=orange}}
| |
| |-
| |
| | {{tlx|Checkbox (colored)|checked|color{{=}}black}}
| |
| | {{Checkbox (colored)|checked|color=black}}
| |
| |-
| |
| | {{tlx|Checkbox (colored)|checked|color{{=}}black|tick{{=}}no}}
| |
| | {{Checkbox (colored)|checked|color=black|tick=no}}
| |
| |-
| |
| | {{tlx|Checkbox (colored)|unchecked|color{{=}}black}}
| |
| | {{Checkbox (colored)|unchecked|color=black}}
| |
| |-
| |
| | {{tlx|Checkbox (colored)|checked|color{{=}}red}}
| |
| | {{Checkbox (colored)|checked|color=red}}
| |
| |-
| |
| | {{tlx|Checkbox (colored)|checked|color{{=}}red|tick{{=}}no}}
| |
| | {{Checkbox (colored)|checked|color=red|tick=no}}
| |
| |-
| |
| | {{tlx|Checkbox (colored)|unchecked|color{{=}}red}}
| |
| | {{Checkbox (colored)|unchecked|color=red}}
| |
| |}
| |