Template:Checkbox: Difference between revisions

From Imagisphere
Jump to navigation Jump to search
(checkbox)
 
mNo edit summary
Line 1: Line 1:
{{#switch:{{{1|}}}
<includeonly><div style="display: inline-flex; width:28px; height:14px"><span style="position:absolute">[[File:Tweak_Generic_Button.png|link=|30px]]</span>
<span style="position:absolute; padding-left:6px; padding-top:3px">{{#switch:{{{1|}}}
|#default
|#default
|checked=[[File:Checkbox_{{{color|black}}}_{{#ifeq:{{{tick|}}}|no|on|checked}}.png|link=|17px|{{{2}}}]]
|checked=[[File:Tweak_GenericSetting_Yes.png|link=|18px|{{{checked}}}|{{{title|Yes}}}]]
|unchecked=[[File:Checkbox_{{{color|black}}}_unchecked.png|link=|17px|{{{2}}}]]
|unchecked=[[File:Tweak_GenericSetting_No.png|link=|18px|{{{unchecked}}}|{{{title|No}}}]]
}}<noinclude>
}}</span></div></includeonly><noinclude>
{{documentation|content=
{{checkbox}}{{checkbox|unchecked}}
 
<pre>
* <code><nowiki>{{checkbox}}</nowiki></code> ⇒ {{checkbox}}
* <code><nowiki>{{checkbox}}</nowiki></code> ⇒ {{checkbox}}
* <code><nowiki>{{checkbox|checked|title}}</nowiki></code> ⇒ {{checkbox|checked|title}}
* <code><nowiki>{{checkbox|checked|title}}</nowiki></code> ⇒ {{checkbox|checked|title}}
* <code><nowiki>{{checkbox|unchecked|title}}</nowiki></code> ⇒ {{checkbox|unchecked|title}}
* <code><nowiki>{{checkbox|unchecked|title}}</nowiki></code> ⇒ {{checkbox|unchecked|title}}
* <code><nowiki>{{checkbox|checked|tick=no}}</nowiki></code> ⇒ {{checkbox|checked|tick=no}}
</pre>
* <code><nowiki>{{checkbox|checked|color=red}}</nowiki></code> ⇒ {{checkbox|checked|color=red}}
 
}}
</noinclude>
</noinclude>

Revision as of 17:53, 1 June 2024

File:Tweak Generic Button.png Yes
File:Tweak Generic Button.png No
* <code>{{checkbox}}</code> ⇒ {{checkbox}}
* <code>{{checkbox|checked|title}}</code> ⇒ {{checkbox|checked|title}}
* <code>{{checkbox|unchecked|title}}</code> ⇒ {{checkbox|unchecked|title}}