From Last Outlaws Online
![]() |
This is a documentation subpage for Template:Collapse top (see that page for the template itself). It contains usage information, categories and other content that is not part of the original template page. |
Usage[edit]
This template is paired with the {{Collapse bottom}} template. These two templates create a collapsible box in which content can be placed in. This can be useful for collapsing down big talk page discussions. This template creates the box, in which the template Collapse Bottom will tell this template where the box is to stop.
Syntax[edit]
There are 13 parameters available, all optional.
positional parameter number 1 or title[edit]
Title of the collapsible box.
{{collapse top|<title=hi>}}
hi |
---|
hello |
warning[edit]
This will show the following under the title: The following is a closed debate. Please do not modify it.
{{collapse top|<title=hi>|<warning=a>}}
hi |
---|
The following is a closed debate. Please do not modify it. |
hello |
positional parameter number 2[edit]
Overrides the text for warning
{{collapse top|<hi>|<custom warning>}}
hi |
---|
custom warning |
hello |
left[edit]
Aligns the text in box to the left
{{collapse top|<left=a>}}
Extended content |
---|
hello |
bg[edit]
Sets the background color of the title
{{collapse top|<bg=#cf3>}}
Extended content |
---|
hello |
border[edit]
Sets the width of the border
{{collapse top|<border=5px>}}
Extended content |
---|
hello |
b-color[edit]
Sets the color of the border
{{collapse top|<b-color=#f4d234>}}
Extended content |
---|
hello |
padding[edit]
Sets the padding of the box
{{collapse top|<padding=20px>}}
Extended content |
---|
hello |
width[edit]
Sets the width of the box
{{collapse top|<width=200px>}}
Extended content |
---|
hello |
border2[edit]
Sets the border of the box when it has expanded. Do not add an option for line style (dotted, dashed etc.)
{{collapse top|<border2=5px black>}}
Extended content |
---|
hello |
bg2[edit]
Sets the background color of the box when it has expanded
{{collapse top|<bg2=silver>}}
Extended content |
---|
hello |
indent[edit]
Indents the box from the left of the page. Case-sensitive.
{{collapse top|<indent=3em>}}
Extended content |
---|
hello |
expand[edit]
If specified with any non-empty value, the box is expanded by default instead of collapsed.
{{collapse top|<expand=a>}}
Extended content |
---|
hello |
Please see Template:Collapse top/doc for more information.