Difference between revisions of "Template:Checkmark"
From Paragon Wiki Archive
m |
(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]] |
| − | + | ||
| − | + | ||
| yes | | yes | ||
| − | |||
| y | | y | ||
| − | | check | + | | check=[[File:Check.png|26px|Yes]] |
| − | + | ||
| empty | | empty | ||
| − | |||
| − | |||
| n | | n | ||
| − | | 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}} | |
| {{Checkmark|Check}} | |
| {{Checkmark|no}} | |
| {{Checkmark|Bob Dole}} | |