Template:Spoiler

From Yogstation-13
Revision as of 12:46, 4 May 2020 by Helpful Herbert (talk | contribs) (Added width-parameter, added link to collapsible-template.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

About

Some collapsible elements look rather ugly with an out of place expand/collapse-button. This template uses a minimalist table to fit any content with style. For a more compact version see Template:Collapsible.

Parameter-Usage

Parameter Default Description
content Content that needs to be hidden
title Spoiler Visible title of the spoiler
title Optional, width of table, useful to prevent jumpy layout on expand.

Examples

Bare

{{Spoiler}}
Spoiler

Bare - Hidden Processing-Options

{{Spoiler
| title=Do not click
| width=300
| content=How

DARE

you!
}}
Do not click

How

DARE

you!