Difference between revisions of "Template:Pulldown"

From Transit.Wiki
m
Line 1: Line 1:
 
{{#vardefine:varid |{{#expr:{{#var:varid}}+1}}}}<div class="mw-customtoggle-{{#var:varid}} pulldownbutton">'''{{{1|details}}}'''</div>
 
{{#vardefine:varid |{{#expr:{{#var:varid}}+1}}}}<div class="mw-customtoggle-{{#var:varid}} pulldownbutton">'''{{{1|details}}}'''</div>
<div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-{{#var:varid}}"><noinclude>
+
<div class="mw-collapsible mw-collapsed pulldownbox commonshadow" id="mw-customcollapsible-{{#var:varid}}"><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>{{pulldown}}</nowiki>'' template, make sure you put ''<nowiki></div></nowiki>'' at the end of the segment.
 
</noinclude>
 
</noinclude>

Revision as of 22:31, 17 May 2019

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.