Collapse example 2

From Bootstrap for MediaWiki
Component
Name Collapse
Description Collapse with a styled button and with an image as the trigger
Provider BootstrapComponents
Reference BootstrapComponents Extension docs - collapse
Styling For all possible color styles and corresponding examples, see colors.

Styled button

Code
<bootstrap_collapse text="Show the details" color="success" outline size="lg">
These details stay hidden until you click the button.
</bootstrap_collapse>
Result

Show the details

These details stay hidden until you click the button.

Image as the trigger

Code
<bootstrap_collapse text="[[File:DSC02180_363.jpg|120px]]">
Clicking the image shows this text.
</bootstrap_collapse>
Result

Clicking the image shows this text.