Template:Spoiler

From The Skullgirls Wiki
Revision as of 14:41, 28 October 2026 by Nacho-dipsauce14 (talk | contribs)
Jump to navigation Jump to search


Template documentation(view) (edit) (history)


{{spoiler|SpoilerHere}}

Description

This template hides spoiler text on a page.

By default, it can be controlled using SpoilerButton. Placing SpoilerButton at a specific location in an article will automatically control the visibility of the spoiler template, regardless of where the spoiler template is positioned.

Alternatively, setting the second parameter to yes ({{spoiler|SpoilerText|yes}}) will automatically render the spoiler button directly alongside the template, making SpoilerButton optional.

Example

Input:

{{SpoilerButton}}
This text does not contain spoilers. {{spoiler|This text is a spoiler.}}

Output:

Show/Hide spoilers
This text does not contain spoilers.
This text is a spoiler.


{{{1}}}