Template:SpoilerBox
This template shows a collapsible spoiler box.
Usage:
{{#tag:div| ⚠️ Spoiler (click to reveal)
This is spoiler content only.}
{{#tag:div| Optional title
Spoiler content here.
Optional parameters:
- `class=` — add extra classes (e.g. `dark-spoiler`)
- `style=` — add custom inline style overrides
To make your own dark style: add CSS for `.dark-spoiler` in your MediaWiki:Common.css
{{#tag:div| ⚠️ Spoiler (click to reveal)
No content provided.}