Template:SpoilerBox: Difference between revisions

From PuppyDog Online Wiki
Jump to navigation Jump to search
woof
woof
Line 5: Line 5:
* {{SpoilerBox|This is spoiler content only.}}
* {{SpoilerBox|This is spoiler content only.}}
* {{SpoilerBox|title=Optional title|content=Spoiler content here.}}
* {{SpoilerBox|title=Optional title|content=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
</noinclude>
</noinclude>
{{#tag:div|
{{#tag:div|

Revision as of 06:19, 13 July 2025

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.

{{#tag:div| ⚠️ Spoiler (click to reveal)

No content provided.}