Difference between revisions of "Template:CustomToggle/Collapsible"

From Second Life Wiki
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>

Revision as of 15:26, 19 May 2015

<inlcudeonly> class="mw-collapsible " id="mw-customcollapsible-"</inlcudeonly>

<div <inlcudeonly> class="mw-collapsible " id="mw-customcollapsible-PRIM_TYPE"</inlcudeonly>>Hidable Thingy

Regular Thingy

Example:

{{CustomToggle/Collapsible|PRIM_TYPE|collapsed=*}}