Difference between revisions of "Template:CustomToggle/Collapsible"
Jump to navigation
Jump to search
m |
m |
||
Line 1: | Line 1: | ||
{{#if: | <inlcudeonly>{{#if: | ||
{{#if:{{#var:initially-collapsed-{{{1|}}}}}|| | {{#if:{{#var:initially-collapsed-{{{1|}}}}}|| | ||
Line 5: | Line 5: | ||
}} | }} | ||
}} class="mw-collapsible {{#ifeq:{{#var:initially-collapsed-{{{1|}}}}}|yes|mw-collapsed}} {{{class|}}}" id="mw-customcollapsible-{{{1|}}}" | }} class="mw-collapsible {{#ifeq:{{#var:initially-collapsed-{{{1|}}}}}|yes|mw-collapsed}} {{{class|}}}" id="mw-customcollapsible-{{{1|}}}"</inlcudeonly><noinclude> | ||
{{CustomToggle|collapsed=*}} | |||
<div {{CustomToggle/Collapsible|PRIM_TYPE}}>Hidable Thingy</div> | |||
<div>Regular Thingy</div> | |||
Example: | |||
<pre>{{CustomToggle/Collapsible|PRIM_TYPE|collapsed=*}}</pre> | |||
</noinclude> |