Badge time.png   The Paragon Wiki Archive documents the state of City of Heroes/Villains as it existed on December 1, 2012.

Difference between revisions of "Template:Checkmark"

From Paragon Wiki Archive
Jump to: navigation, search
(Checkmark)
 
(Undo revision 251378 by Aggelakis (talk) - The images were changed, they all have extra pixels in the upper right now.)
 
(8 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{#switch: {{{1|}}}|
+
<includeonly>{{#switch: {{lc:{{{1|}}}}}|
| x
+
| x=[[File:Cross.png|{{{2|24px}}}|Yes]]
| X=[[File:Cross.png|24px|Yes]]
+
| yes
| check
+
| y
| Check=[[File:Check.png|24px|Yes]]
+
| check=[[File:Check.png|{{{2|24px}}}|Yes]]
| no
+
| empty
| No=[[File:Empty.png|24px|No]]
+
| n
| #default=[[File:Empty.png|24px|No]]}}<noinclude>[[Category:Templates]]</noinclude>
+
| no=[[File:Empty.png|{{{2|24px}}}|No]]
 +
| #default=[[File:Icon clue generic.png|24px|No]]}}</includeonly><noinclude>
 +
== Usage==
 +
Anywhere you need check boxes.
 +
 
 +
This Template uses two (optional) variables:
 +
*The first chooses the type of checkmark
 +
**X, x = an X/cross in the box
 +
**Check, check, Yes, yes, Y, y = a checkmark
 +
**No, no, N, n, Empty, empty = empty box
 +
 
 +
*The second can change the size of the image
 +
**The default size for all options is '''24px'''.
 +
 
 +
*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|yes|16px}}</nowiki> || {{Checkmark|yes|16px}}
 +
|-
 +
| <nowiki>{{Checkmark|Bob Dole}}</nowiki> || {{Checkmark|Bob Dole}}
 +
|}
 +
[[Category:Templates]]</noinclude>

Latest revision as of 20:47, 4 September 2013

Usage

Anywhere you need check boxes.

This Template uses two (optional) variables:

  • The first chooses the type of checkmark
    • X, x = an X/cross in the box
    • Check, check, Yes, yes, Y, y = a checkmark
    • No, no, N, n, Empty, empty = empty box
  • The second can change the size of the image
    • The default size for all options is 24px.
  • 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|yes|16px}} Yes
{{Checkmark|Bob Dole}} No