Difference between revisions of "Template:CustomToggle"
Jump to navigation
Jump to search
m |
m |
||
(One intermediate revision by the same user not shown) | |||
Line 5: | Line 5: | ||
}} | }} | ||
}}<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:{{{link|}}}|{{{link|}}}|{{FULLPAGENAMEE}}#{{anchorencode:mw-customcollapsible-{{{1|}}}}}}}|{{#if:{{{show|}}}|{{{show|}}}|Show}}]]<nowiki>]</nowiki></div><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:{{{hide|}}}|{{{hide|}}}|Hide}}]]<nowiki>]</nowiki></div><noinclude> | }}<div class="mw-collapsible mw-customtoggle-{{{1|}}} mw-collapsible-toggle {{#ifeq:{{#var:initially-collapsed-{{{1|}}}}}|no|mw-collapsed}} {{{class|}}}" id="mw-customcollapsible-{{{1|}}}" {{#ifeq:{{#var:initially-collapsed-{{{1|}}}}}|no|2=style="display:none;"}}><nowiki>[</nowiki>[[{{#if:{{{link|}}}|{{{link|}}}|{{FULLPAGENAMEE}}#{{anchorencode:mw-customcollapsible-{{{1|}}}}}}}|{{#if:{{{show|}}}|{{{show|}}}|Show}}]]<nowiki>]</nowiki></div><div class="mw-collapsible mw-customtoggle-{{{1|}}} mw-collapsible-toggle {{#ifeq:{{#var:initially-collapsed-{{{1|}}}}}|yes|mw-collapsed}} {{{class|}}}" id="mw-customcollapsible-{{{1|}}}" {{#ifeq:{{#var:initially-collapsed-{{{1|}}}}}|yes|2=style="display:none;"}}><nowiki>[</nowiki>[[##|{{#if:{{{hide|}}}|{{{hide|}}}|Hide}}]]<nowiki>]</nowiki></div><noinclude> | ||
<div {{CustomToggle/Collapsible|{{{1|}}}}}>Hidable Thingy</div> | <div {{CustomToggle/Collapsible|{{{1|}}}}}>Hidable Thingy</div> | ||
Line 11: | Line 11: | ||
Example: | Example: | ||
<pre>{{CustomToggle|PRIM_TYPE|hide=Collapse|show=Expand|class=foo|collapsed=*|link={{FULLPAGENAMEE}}##}}</pre> | <pre>{{CustomToggle|PRIM_TYPE|hide=Collapse|show=Expand|class=foo|collapsed=*|link={{FULLPAGENAMEE}}##}}</pre> | ||
</noinclude> | </noinclude> |