Template:Collapse top/doc
This is a documentation subpage for Template:Collapse top. It may contain usage information, categories and other content that is not part of the original template page. |
The Collapse template is used for placing collapse boxes around discussions.
Usage
changeNote: {{Collapse top}} and {{Collapse bottom}} need to be substed in order for the time stamp functionality to work properly.
{{Collapse top|Optional text|bg|padding}}
DISCUSSION
{{Collapse bottom}}
The bg parameter
changeThe bg parameter is Optional. It changes the background color. use Web color values (e.g. #F0F2F5).
- Example
{{Collapse top|bg=#F0F2F5}} or {{cot|bg=#F0F2F5}} creates:
Extended content
|
---|
Text here. |
The padding parameter
changeThe padding parameter adjusts the amount of cell padding (defaults to 8px)
Around header text
changeWhen used with a section of text, include the section header in the collapsed portion of text. For example, given:
Replace with:
The expand parameter
changeAdd |expand=yes
to have the box show up in expanded form with a "hide" link, instead of collapsed form with a "show" link. use |expand=
(an empty value) or omit the expand parameter to have the box show up in collapsed form.
Related pages
change- {{collapse bottom}}
- {{collapse}}