Template:Collapse: Difference between revisions
From Space Station 14 Wiki
(expand collapse button positioning customization) |
(template styles template used instead of direct cat link; moved from markup template to spoiler templates cat) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly><!-- | <includeonly><!-- | ||
# template styles | # template styles | ||
--><templatestyles src="/styles.css" /><!-- | --><templatestyles src="Template:Collapse/styles.css" /><!-- | ||
# template | # template | ||
Line 8: | Line 8: | ||
mw-collapsible | mw-collapsible | ||
{{#if: {{{collapsed|1}}}|mw-collapsed}} | {{#if: {{{collapsed|1}}}|mw-collapsed}} | ||
expand-collapse-button-float-{{{button float| | 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: | [[Category:Spoiler templates]] | ||
<templatedata> | <templatedata> | ||
{ | { | ||
Line 43: | Line 45: | ||
"none" | "none" | ||
], | ], | ||
"default": " | "default": "none", | ||
"suggested": true | "suggested": true | ||
} | } | ||
}, | }, | ||
"description": "A template for creating collapsible blocks | "description": "A template for creating collapsible blocks.", | ||
"paramOrder": [ | "paramOrder": [ | ||
"1", | "1", |
Latest revision as of 11:31, 15 August 2024
Uses template styles
This template uses template styles found in:
- As a separate string of text
{{Collapse|text inside!!}}
:
- Inside a string of text
Lorem ipsum {{Collapse|text inside!!}} dolor sit amet
:
A template for creating collapsible blocks.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Content | 1 | Content inside the box. | String | required |
Is collapsed by default? | collapsed | no description
| Boolean | suggested |
Any custom styling | style | no description
| String | suggested |
Button float | button float | Placement for the "Expand/Collapse" button using float.
| String | suggested |