Difference between revisions of "Template:CustomToggle"
Jump to navigation
Jump to search
(~_~ bad hack) |
m |
||
Line 1: | Line 1: | ||
<div class="mw-customtoggle-{{{1}}} mw-collapsible-toggle"><nowiki>[</nowiki>[[##|Show/ | <div class="mw-collapsible mw-customtoggle-{{{1|}}} mw-collapsible-toggle {{#if:{{{collapsed|}}}||mw-collapsed}}" id="mw-customcollapsible-{{{1|}}} {{{class|}}}"><nowiki>[</nowiki>[[##|{{#if:{{{show|}}}|{{{show|}}}|Show}}]]<nowiki>]</nowiki></div><div class="mw-collapsible mw-customtoggle-{{{1|}}} mw-collapsible-toggle {{#if:{{{collapsed|}}}|mw-collapsed}}" id="mw-customcollapsible-{{{1|}}} {{{class|}}}"><nowiki>[</nowiki>[[##|{{#if:{{{hide|}}}|{{{hide|}}}|Hide}}]]<nowiki>]</nowiki></div><noinclude> | ||
Example | |||
<pre><nowiki>{{CustomToggle|PRIM_TYPE|hide=Collapse|show=Expand|class=foo|collapsed=*}} | |||
<div class="mw-collapsible" id="mw-customcollapsible-{{{1|}}}">Hidable Thingy</div> | |||
</noinclude> |