Template:SpoilerBox

Revision as of 01:27, 19 November 2021 by Auron956 (talk | contribs) (Add special handling for color=default)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Template for embedding text in a spoiler box. Minimum syntax is {{SpoilerBox|text=internal text}} to get

The following content contains spoilers! Expand to view.
internal text

There are also arguments for title & color, for example {{SpoilerBox|color=green|text=internal text|title=title}} gives

title
internal text

The color argument also accepts 'default' as a special value, which causes the title text to remain as the default wiki text color. For example:

{{SpoilerBox|color=default|text=internal text|title=Default text color}} gives

Default text color
internal text