User:Tiddlywinks/MakeHideButton: Difference between revisions

m
typo... (my JS function with slightly different logic)
(more useful... (typing each attribute the same is what's a pain in the first place))
m (typo... (my JS function with slightly different logic))
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
class="clicktoggler {{#ifeq: {{{start|on}}}|on|clicktoggle-active}}" data-type="toggle" data-for="{{{1|Spoilers}}},{{{2|DLC}}}"
class="clicktoggle {{#ifeq: {{{start|on}}}|on|clicktoggle-active}}" data-type="{{{type|set}}}" data-for="{{{1|Spoilers}}},{{{2|DLC}}}"
style="{{{common|}}}; {{{off|}}}"  
style="{{{common|}}}; {{{off|}}}"  
data-active-style="{{{common|}}}; {{{on|}}}"<noinclude>
data-active-style="{{{common|}}}; {{{on|}}}"<noinclude>




This template makes an element into a button that hides targets that have the same values ([[User:Tiddlywinks/MakeHideTarget]]).
{{Documentation}}


<!--
[[Category:Code templates]]
-->
</noinclude>
</noinclude>