Difference between revisions of "Template:Checkmark"

From Ouroboros Portal
Jump to: navigation, search
(Created page with "<includeonly>{{#switch: {{lc:{{{1|}}}}}| | x=Yes | yes | y | check=Yes | empty | n | no=No | #default=[[Fi...")
 
m
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<includeonly>{{#switch: {{lc:{{{1|}}}}}|
 
<includeonly>{{#switch: {{lc:{{{1|}}}}}|
| x=[[File:Cross.png|24px|Yes]]
+
| x=[[File:Cross.png|{{{2|24px}}}|Yes]]
 
| yes
 
| yes
 
| y
 
| y
| check=[[File:Check.png|26px|Yes]]
+
| check=[[File:Check.png|{{{2|26px}}}|Yes]]
 
| empty
 
| empty
 
| n
 
| n
| no=[[File:Empty.png|24px|No]]
+
| no=[[File:Empty.png|{{{2|24px}}}|No]]
| #default=[[File:Icon clue generic.png|24px|No]]}}</includeonly><noinclude>
+
| #default=[[File:Icon clue generic.png|24px|?]]}}</includeonly><noinclude>
 
== Usage==
 
== Usage==
 
Anywhere you need check boxes.
 
Anywhere you need check boxes.
  
One variable:
+
This Template uses two (optional) variables:
*X, x = an X/cross in the box
+
*The first chooses the type of checkmark
*Check, check, Yes, yes, Y, y = a checkmark
+
**X, x = an X/cross in the box
*No, no, N, n, Empty, empty = empty 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 Checkmarks is '''26px''' and for an X or empty box it is '''24px'''.
  
 
*If no value is passed (do not use a pipe), it will return an X.
 
*If no value is passed (do not use a pipe), it will return an X.
Line 29: Line 32:
 
|-
 
|-
 
| <nowiki>{{Checkmark|no}}</nowiki> || {{Checkmark|no}}
 
| <nowiki>{{Checkmark|no}}</nowiki> || {{Checkmark|no}}
 +
|-
 +
| <nowiki>{{Checkmark|yes|16px}}</nowiki> || {{Checkmark|yes|16px}}
 
|-
 
|-
 
| <nowiki>{{Checkmark|Bob Dole}}</nowiki> || {{Checkmark|Bob Dole}}
 
| <nowiki>{{Checkmark|Bob Dole}}</nowiki> || {{Checkmark|Bob Dole}}
 
|}
 
|}
 
[[Category:Templates]]</noinclude>
 
[[Category:Templates]]</noinclude>

Latest revision as of 23:01, 22 April 2019

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 Checkmarks is 26px and for an X or empty box it 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}} ?