Template:Collapse
1 Collapse✎
Hides a block of content behind a [ Show / Hide ] toggle. Always close it with {{Endcollapse}} — the two are a pair, and this half opens a table that the other half closes.
1.1 Usage✎
{{Collapse|text="[ Roster ]"|color="#5C3928"}}
|-
| Alice || Engineer
|-
| Bob || Designer
{{Endcollapse}}
The content between them is wikitable rows (|-, | cell) — this
template opens the {| for you.
1.2 Parameters✎
| Name | What it does |
|---|---|
text |
The toggle label. Wikitext, so '''bold''' works. Defaults to [ Show / Hide ].
|
color |
Colour of the toggle label. Defaults to black. |
style |
CSS on the table. |
1.3 Notes✎
- No ids at all. A toggle is paired with its panel by position — the panel is the
toggle's next sibling — so two Collapses on one page cannot collide, and there is nothing to
name. The old {{{_uid}}} id scheme was removed on
2026-08-07.
- Safe to paste inline. Because nothing here depends on being expanded as a template, the
markup above also works written straight onto a page. That was previously a silent trap:
{{{_uid}}} resolved to nothing outside a template
call, so the panel rendered and could never be opened.
-
class,divstyle,collapsedivstyleandtag
were removed in v0.2.2 — nothing used them, and two of them never worked.
Pages using this template
Content available under CC BY-SA 4.0