The Collapse template is used for placing collapse boxes around discussions.

Usage

[change source]

Note: ((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

[change source]

The 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

[change source]

The padding parameter adjusts the amount of cell padding (defaults to 8px)

Around header text

[change source]

When used with a section of text, include the section header in the collapsed portion of text. For example, given:

Example text
== Heading ==
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Replace with:

Changed to
((subst:Collapse top|Heading))
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
((subst:Collapse bottom))

The expand parameter

[change source]

Add |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.

[change source]