Template:Collapse

From Space Station 14 Wiki
Revision as of 15:42, 24 June 2024 by Aliser (talk | contribs) (expand collapse button positioning customization)
Template documentation
view or edit this documentation about template documentation

  • As a separate string of text {{Collapse|text inside!!}}:
Page Template:/styles.css has no content.
text inside!!
  • Inside a string of text Lorem ipsum {{Collapse|text inside!!}} dolor sit amet:
Lorem ipsum Page Template:/styles.css has no content.
text inside!!
dolor sit amet

A template for creating collapsible blocks. By default, takes up the entire width, placing the "Expand/Collapse" button to the right.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Content1

Content inside the box.

Stringrequired
Is collapsed by default?collapsed

no description

Default
1
Booleansuggested
Any custom stylingstyle

no description

Example
width: 10rem;
Stringsuggested
Button floatbutton float

Placement for the "Expand/Collapse" button using float.

Suggested values
left right none
Default
left
Stringsuggested