Template:Checkmark: Difference between revisions

From Unofficial Homecoming Wiki
Jump to navigation Jump to search
imported>Aggelakis
mNo edit summary
imported>Sekoia
(avoiding case sensitivity issues using "lc" (lowercase) parser function)
Line 1: Line 1:
<includeonly>{{#switch: {{{1|}}}|
<includeonly>{{#switch: {{lc:{{{1|}}}}}|
| x
| x=[[File:Cross.png|24px|Yes]]
| X=[[File:Cross.png|24px|Yes]]
| Yes
| yes
| yes
| Y
| y
| y
| check
| check=[[File:Check.png|26px|Yes]]
| Check=[[File:Check.png|26px|Yes]]
| empty
| empty
| Empty
| N
| n
| n
| no
| no=[[File:Empty.png|24px|No]]
| No=[[File:Empty.png|24px|No]]
| #default=[[File:Icon clue generic.png|24px|No]]}}</includeonly><noinclude>
| #default=[[File:Icon clue generic.png|24px|No]]}}</includeonly><noinclude>
== Usage==
== Usage==

Revision as of 00:26, 12 November 2010

Usage

Anywhere you need check boxes.

One variable:

  • X, x = an X/cross in the box
  • Check, check, Yes, yes, Y, y = a checkmark
  • No, no, N, n, 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