Difference between revisions of "Template:Checkmark"
From Paragon Wiki Archive
m |
m (details) |
||
Line 1: | Line 1: | ||
− | {{#switch: {{{1|}}}| | + | <includeonly>{{#switch: {{{1|}}}| |
| x | | x | ||
| X=[[File:Cross.png|24px|Yes]] | | X=[[File:Cross.png|24px|Yes]] | ||
| check | | check | ||
| Check=[[File:Check.png|26px|Yes]] | | Check=[[File:Check.png|26px|Yes]] | ||
+ | | empty | ||
+ | | Empty | ||
| no | | no | ||
| No=[[File:Empty.png|24px|No]] | | No=[[File:Empty.png|24px|No]] | ||
− | | #default=[[File: | + | | #default=[[File:Icon clue generic.png|24px|No]]}}</includeonly><noinclude> |
+ | == Usage== | ||
+ | Anywhere you need check boxes. | ||
+ | |||
+ | One variable: | ||
+ | *X, x = an X/cross in the box | ||
+ | *Check, check = a checkmark | ||
+ | *No, no, Empty, empty = empty box | ||
+ | |||
+ | |||
+ | *If no value is passed (do not use a pipe), it will return an X. | ||
+ | *If a wrong value is passed, it will return a question mark. | ||
+ | |||
+ | == Examples == | ||
+ | {| class="wikitable" width="50%" | ||
+ | ! width="50%" | Input !! width="50%" | Results | ||
+ | |- | ||
+ | | <nowiki>{{Checkmark|x}}</nowiki> || {{Checkmark|x}} | ||
+ | |- | ||
+ | | <nowiki>{{Checkmark|Check}}</nowiki> || {{Checkmark|Check}} | ||
+ | |- | ||
+ | | <nowiki>{{Checkmark|no}}</nowiki> || {{Checkmark|no}} | ||
+ | |- | ||
+ | | <nowiki>{{Checkmark|Bob Dole}}</nowiki> || {{Checkmark|Bob Dole}} | ||
+ | |} | ||
+ | [[Category:Templates]]</noinclude> |
Revision as of 02:56, 11 November 2010
Usage
Anywhere you need check boxes.
One variable:
- X, x = an X/cross in the box
- Check, check = a checkmark
- No, no, Empty, empty = empty box
- If no value is passed (do not use a pipe), it will return an X.
- If a wrong value is passed, it will return a question mark.
Examples
Input | Results |
---|---|
{{Checkmark|x}} | |
{{Checkmark|Check}} | |
{{Checkmark|no}} | |
{{Checkmark|Bob Dole}} |