Difference between revisions of "Template:Pulldown"

From Transit.Wiki
m (Created page with '  <span class="_togglegroup _toggle_initshow _toggler" style="display:none;">{{{1}}}</span><div class="_toggle_inithide _toggle toggle-hidden" style="position:absolute;…')
 
m
 
(16 intermediate revisions by the same user not shown)
Line 1: Line 1:
&nbsp;&nbsp;<span class="_togglegroup _toggle_initshow _toggler" style="display:none;">{{{1}}}</span><div class="_toggle_inithide _toggle toggle-hidden" style="position:absolute;border: 1px solid #ccc;background: #fff;min-width:300px;">
+
{{#vardefine:varid |{{#expr:{{#var:varid}}+1}}}}<div class="mw-customtoggle-{{#var:varid}} pulldownbutton">'''{{{1|details}}}'''</div>
<span class="_toggle_inithide _toggle _toggler toggle-hidden" style="text-align:right;">[Close X]</span>
+
<div class="mw-collapsible mw-collapsed pulldownbox commonshadow" id="mw-customcollapsible-{{#var:varid}}" style="z-index:300;"><noinclude>
<noinclude>
 
 
Details...
 
Details...
 
</div>
 
</div>
 
+
This template is used to collapse a long section. When you start a segment using the ''<nowiki>{{pulldown}}</nowiki>'' template, make sure you put ''<nowiki></div></nowiki>'' at the end of the segment.
This template is used to collapse a long section. When you start a segment using the ''<nowiki>{{showhide}}</nowiki>'' template, make sure you put ''<nowiki></div></nowiki>'' at the end of the segment.
 
 
</noinclude>
 
</noinclude>

Latest revision as of 17:18, 9 March 2020

details

Details...

This template is used to collapse a long section. When you start a segment using the {{pulldown}} template, make sure you put </div> at the end of the segment.