Template:Collapse: Difference between revisions

From Space Station 14 Wiki
(cat)
(template styles template used instead of direct cat link; moved from markup template to spoiler templates cat)
 
Line 10: Line 10:
     expand-collapse-button-float-{{{button float|none}}}"
     expand-collapse-button-float-{{{button float|none}}}"
   style="{{{style|}}}">{{{1}}}</div></includeonly><noinclude>
   style="{{{style|}}}">{{{1}}}</div></includeonly><noinclude>
{{documentation}}
{{documentation|bb=
{{uses template styles}}
}}


[[Category:Markup templates]]
[[Category:Spoiler templates]]
[[Category:Templates using template styles]]
<templatedata>
<templatedata>
{
{

Latest revision as of 11:31, 15 August 2024

Template documentation
view or edit this documentation about template documentation
Uses template styles
This template uses template styles found in:

  • As a separate string of text {{Collapse|text inside!!}}:
text inside!!
  • Inside a string of text Lorem ipsum {{Collapse|text inside!!}} dolor sit amet:
Lorem ipsum
text inside!!
dolor sit amet

A template for creating collapsible blocks.

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
none
Stringsuggested