Difference between revisions of "Template:CustomToggle"

From Second Life Wiki
Jump to navigation Jump to search
m
m
Line 1: Line 1:
<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>
{{#if:


<div class="mw-collapsible" id="mw-customcollapsible-{{{1|}}}">Hidable Thingy</div>
{{#if:{{#var:initially-collapsed-{{{1|}}}}}|
{{#vardefine:initially-collapsed-{{{1|}}}|{{#if:{{{collapsed|}}}|yes|no}}}}
}}
 
}}<div class="mw-collapsible mw-customtoggle-{{{1|}}} mw-collapsible-toggle {{#ifeq:{{#var:initially-collapsed-{{{1|}}}}}|yes|mw-collapsed}} {{{class|}}}" id="mw-customcollapsible-{{{1|}}}"><nowiki>[</nowiki>[[##|{{#if:{{{show|}}}|{{{show|}}}|Show}}]]<nowiki>]</nowiki></div><div class="mw-collapsible mw-customtoggle-{{{1|}}} mw-collapsible-toggle {{#ifeq:{{#var:initially-collapsed-{{{1|}}}}}|no|mw-collapsed}} {{{class|}}}" id="mw-customcollapsible-{{{1|}}}"><nowiki>[</nowiki>[[##|{{#if:{{{hide|}}}|{{{hide|}}}|Hide}}]]<nowiki>]</nowiki></div><noinclude>
 
<div {{CustomToggle/Collapsible|{{{1|}}}}}>Hidable Thingy</div>
<div>Regular Thingy</div>
<div>Regular Thingy</div>
Example:
Example:

Revision as of 15:16, 19 May 2015

Hidable Thingy
Regular Thingy

Example:

{{CustomToggle|PRIM_TYPE|hide=Collapse|show=Expand|class=foo|collapsed=*}}