Difference between revisions of "Template:Checkbox"

From SME Server
Jump to navigationJump to search
m (1 revision imported: checkboxes)
Line 1: Line 1:
{{#switch:{{{1|}}}
+
<includeonly>{{#switch:{{{1|}}}
|#default
+
| 1
|checked=[[File:Checkbox_{{{color|black}}}_{{#ifeq:{{{tick|}}}|no|on|checked}}.png|link=|17px|{{{2}}}]]
+
| black | Black = [[File:Black Square.png|link=]]
|unchecked=[[File:Checkbox_{{{color|black}}}_unchecked.png|link=|17px|{{{2}}}]]
+
| 0
}}<noinclude>
+
| #default
{{documentation|content=
+
| white | White = [[File:Blank square.png|link=]]
 
+
}}&nbsp;{{{2|}}}</includeonly><noinclude>
* <code><nowiki>{{checkbox}}</nowiki></code> ⇒ {{checkbox}}
+
{{Documentation}}</noinclude>
* <code><nowiki>{{checkbox|checked|title}}</nowiki></code> ⇒ {{checkbox|checked|title}}
 
* <code><nowiki>{{checkbox|unchecked|title}}</nowiki></code> ⇒ {{checkbox|unchecked|title}}
 
* <code><nowiki>{{checkbox|checked|tick=no}}</nowiki></code> ⇒ {{checkbox|checked|tick=no}}
 
* <code><nowiki>{{checkbox|checked|color=red}}</nowiki></code> ⇒ {{checkbox|checked|color=red}}
 
 
 
}}
 
</noinclude>
 

Revision as of 04:01, 25 April 2022

{{#invoke:documentation|main|_content={{ {{#invoke:documentation|contentTitle}}}}}}