Difference between revisions of "Collapsible"

Line 7: Line 7:
 
</div>
 
</div>
 
{{!}}</includeonly><includeonly>}</includeonly>
 
{{!}}</includeonly><includeonly>}</includeonly>
 +
<noinclude>
 +
Creates a box with a collapsible segment.
 +
;|width
 +
Sets the box width to a percentage of the site width.
 +
;|header
 +
Creates a level 3 header within the box, but outside the collapsible segment.
 +
;|collapsed
 +
Starts in the expanded state when set to '''false'''. Defaults to the collapsed state when not set or set to any other value, including '''true'''.
 +
;|1
 +
Holds text outside the collapsible segment, this text will be visible in both expanded and collapsed states
 +
;|2
 +
holds the text within the collapsible segment. This text will be hidden when the segment is collapsed. Headers in this segment will not work from the Table of Contents when the section is collapsed.

Revision as of 16:21, 27 February 2022


Creates a box with a collapsible segment.

|width

Sets the box width to a percentage of the site width.

|header

Creates a level 3 header within the box, but outside the collapsible segment.

|collapsed

Starts in the expanded state when set to false. Defaults to the collapsed state when not set or set to any other value, including true.

|1

Holds text outside the collapsible segment, this text will be visible in both expanded and collapsed states

|2

holds the text within the collapsible segment. This text will be hidden when the segment is collapsed. Headers in this segment will not work from the Table of Contents when the section is collapsed.

Get MetaBattle Premium
Enjoy an ad-free experience & support the website, for less than $1 per month! Upgrade to Premium