Template:Checkbox: Difference between revisions

From Imagisphere
Jump to navigation Jump to search
No edit summary
mNo edit summary
Line 1: Line 1:
<includeonly><div id="{{{id|cb}}}" data-id="checkbox" data-checked="{{{check|yes}}}" checkbox class="image-{{{color|black}}}" style="display:inline-flex; cursor: pointer;"><div style="display:contents; width:28px; height:14px"><span style="margin-left:-6px; margin-top:-8px">[[File:Tweak_Generic_Button.png|link=|30px]]</span><span id="check-{{{id|cb}}}" style="position:absolute; display: {{#ifeq: {{lc:{{{check|yes}}}}} | yes | ruby | none }}; margin-top:-5px">[[File:Tweak_GenericSetting_Yes.png|link=|18px]]</span><span id="uncheck-{{{id|cb}}}" style="position:absolute; display: {{#ifeq: {{lc:{{{check|yes}}}}} | no | ruby | none }}; margin-top:-5px">[[File:Tweak_GenericSetting_No.png|link=|18px]]</span></div><div style="margin-left: -2px; padding-right: 4px; margin-top:-5px">{{{title|}}}</div></span></div></div></includeonly><noinclude>
<includeonly><div id="{{{id|cb}}}" data-id="checkbox" data-checked="{{{check|yes}}}" checkbox class="image-{{{color|black}}}" style="display:inline-flex; cursor: pointer; -webkit-user-select: none; -ms-user-select: none; user-select: none;"><div style="display:contents; width:28px; height:14px"><span style="margin-left:-6px; margin-top:-8px">[[File:Tweak_Generic_Button.png|link=|30px]]</span><span id="check-{{{id|cb}}}" style="position:absolute; display: {{#ifeq: {{lc:{{{check|yes}}}}} | yes | ruby | none }}; margin-top:-5px">[[File:Tweak_GenericSetting_Yes.png|link=|18px]]</span><span id="uncheck-{{{id|cb}}}" style="position:absolute; display: {{#ifeq: {{lc:{{{check|yes}}}}} | no | ruby | none }}; margin-top:-5px">[[File:Tweak_GenericSetting_No.png|link=|18px]]</span></div><div style="margin-left: -2px; padding-right: 4px; margin-top:-5px">{{{title|}}}</div></span></div></div></includeonly><noinclude>
<span style="background:white; padding-top:5px; padding-bottom:6px;">{{checkbox|color=black|check=yes|title=Title1|id=cb1}}{{checkbox|color=black|check=no|title=Title2|id=cb2}}</span>
<span style="background:white; padding-top:5px; padding-bottom:6px;">{{checkbox|color=black|check=yes|title=Title1|id=cb1}}{{checkbox|color=black|check=no|title=Title2|id=cb2}}</span>
<span style="background:black; padding-top:5px; padding-bottom:6px; padding-left:4px;">{{checkbox|color=white|check=yes|title=Title3|id=cb3}}{{checkbox|color=white|check=no|title=Title4|id=cb4}}</span>
<span style="background:black; padding-top:5px; padding-bottom:6px; padding-left:4px;">{{checkbox|color=white|check=yes|title=Title3|id=cb3}}{{checkbox|color=white|check=no|title=Title4|id=cb4}}</span>

Revision as of 10:41, 7 June 2024

Usage

{{checkbox|color=black|check=Yes|title=Title1|id=cb1}}
{{checkbox|color=black|check=No|title=Title2|id=cb2}}
{{checkbox|color=white|check=Yes|title=Title3|id=cb3}}
{{checkbox|color=white|check=No|title=Title4|id=cb3}}