Logo Albion iconAlbion Online Deadlock iconDeadlock GW2 iconGuild Wars 2 TL iconThrone & Liberty

Difference between revisions of "Collapsible"

Line 9: Line 9:
 
<noinclude>
 
<noinclude>
 
Creates a box with a collapsible segment.
 
Creates a box with a collapsible segment.
;|width
+
<pre>
 +
{{Collapsible
 +
|width=70
 +
|header=<header title>
 +
|collapsed=true
 +
|<text outside collapsible area>
 +
|<text within collapsible area>
 +
}}</pre>
 +
 
 +
== Parameters ==
 +
;width
 
Sets the box width to a percentage of the site width. Defaults to 70.
 
Sets the box width to a percentage of the site width. Defaults to 70.
;|header
+
;header
 
When set, creates a level 3 header within the box, but outside the collapsible segment.  
 
When set, creates a level 3 header within the box, but outside the collapsible segment.  
;|collapsed
+
;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'''.
 
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
+
;unnamed parameter 1
 
Holds text outside the collapsible segment, this text will be visible in both expanded and collapsed states
 
Holds text outside the collapsible segment, this text will be visible in both expanded and collapsed states
;|2
+
;unnamed parameter 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.
 
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.
 +
</noinclude>

Revision as of 16:37, 27 February 2022


Creates a box with a collapsible segment.

{{Collapsible
|width=70
|header=<header title>
|collapsed=true
|<text outside collapsible area>
|<text within collapsible area>
}}

Parameters

width

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

header

When set, 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.

unnamed parameter 1

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

unnamed parameter 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
Split Metabattle Logo