Template:Checkmark: Difference between revisions

From Unofficial Homecoming Wiki
Jump to navigation Jump to search
imported>Aggelakis
mNo edit summary
imported>Aggelakis
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:Empty.png|24px|No]]}}<noinclude>[[Category:Templates]]</noinclude>
| #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}} Yes
{{Checkmark|Check}} Yes
{{Checkmark|no}} No
{{Checkmark|Bob Dole}} No