Template:Collapse top simple/doc

From Terraria Wiki
Jump to navigation Jump to search

This template is used to insert collapsed content sections.

Place {{collapse top simple}} at the top of the content to be collapsed, and {{collapse bottom simple}} underneath it, each on their own separate lines.

Usage

{{ collapse top simple | <expand link text> | <collapse link text> | class = <class name(s)> | style/css = <custom styling> }}

ParameterDescriptionTypeStatus
Expand link text1
Custom display text for the expand link.
Auto value:
''Click here to reveal list''
Line
optional
Collapse link text2
Custom display text for the collapse link.
Auto value:
''Hide list''
Line
optional
Classesclass
List of classes to be applied to the table separated by spaces.
Line
optional
Stylingstyle
css
Custom CSS rules for the table.
Example:
width: 100%
Line
optional

This template prefers inline formatting of parameters.

Example

{{collapse top simple}}

... content ...

{{collapse bottom simple}}

See also