Difference between revisions of "User:CreativeHedgehog/Templates/ToggleSwitch"
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <noinclude> | + | <noinclude> |
+ | {{User:CreativeHedgehog/Templates/Navbar||||||||20px}} | ||
+ | Here is a page of a switch. It's very easy to use, just put | ||
+ | <div style="font-family:monospace; background-color:grey; color:darkgrey; padding:15px;"> | ||
+ | |||
+ | <nowiki>{{User:CreativeHedgehog/Templates/ToggleSwitch| yes || no| (height in px) | (color)}}</nowiki> | ||
+ | |||
+ | </div> | ||
+ | </noinclude> | ||
<div id="variables-control-panel" style="--yes:right; --no:left; --yescolor:{{{4|#61ad00}}}; --nocolor:{{{4|#dedede}}};"> | <div id="variables-control-panel" style="--yes:right; --no:left; --yescolor:{{{4|#61ad00}}}; --nocolor:{{{4|#dedede}}};"> | ||
Line 13: | Line 21: | ||
<div id="marginhack" style="margin-bottom:250px;"></div> | <div id="marginhack" style="margin-bottom:250px;"></div> | ||
</div> | </div> | ||
− | <noinclude>< | + | <noinclude><div style="font-family:monospace; background-color:grey; color:darkgrey; padding:15px;"> |
+ | <nowiki>{{User:CreativeHedgehog/Templates/ToggleSwitch|yes|100|#1b3650|#aaaaaa}}</nowiki> | ||
+ | |||
+ | </div> | ||
gives this: | gives this: | ||
Latest revision as of 14:03, 27 July 2020
Here is a page of a switch. It's very easy to use, just put
{{User:CreativeHedgehog/Templates/ToggleSwitch| yes || no| (height in px) | (color)}}
H
{{User:CreativeHedgehog/Templates/ToggleSwitch|yes|100|#1b3650|#aaaaaa}}
gives this:
H
It is very important to put no space between them.