Difference between revisions of "Template:Showhide"

From Transit.Wiki
m
m
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
&nbsp;&nbsp;<span class="_togglegroup _toggle_initshow _toggle _toggler toggle-visible" style="display:none;"><div style="display: inline; white-space: nowrap; background-color: #F0F0F0; border: 1px solid #888; {{box-shadow|1px|1px|2px|#444}}; {{border-radius|0.3em}}; margin-bottom: 4px; padding: 4px;">show details ▼</div></span><span class="_toggle_inithide _toggle _toggler toggle-hidden" style="display:none;"><div style="display: inline; white-space: nowrap;background-color: #F0F0F0; border: 1px solid #888; {{box-shadow|1px|1px|2px|#444}}; {{border-radius|0.3em}}; margin-bottom: 4px; padding: 4px;">hide details ▲</div></span>
+
{{#vardefine:varid |{{#expr:{{#var:varid}}+1}}}}<div class="mw-customtoggle-{{#var:varid}} pulldownbutton">'''{{{1|details}}}'''</div>
<div class="_toggle_inithide _toggle toggle-hidden" style="padding-bottom:7px; border: 1px solid #888; {{box-shadow|1px|1px|6px|#444}}; {{border-radius|0.75em}}; margin-bottom: 4px; padding: 4px;"><noinclude>
+
<div class="mw-collapsible mw-collapsed" 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>{{showhide}}</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 14:56, 20 January 2018

details

Details...

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