Difference between revisions of "Template:CustomToggle"

From Second Life Wiki
Jump to navigation Jump to search
(~_~ bad hack)
m
Line 1: Line 1:
<div class="mw-customtoggle-{{{1}}} mw-collapsible-toggle"><nowiki>[</nowiki>[[##|Show/Hide{{#if:{{{2|}}}|&nbsp;{{{2|}}}}}]]<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:{{{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>

Revision as of 14:28, 19 May 2015

Example

<nowiki>

Hidable Thingy