Template:Spoiler/doc: Difference between revisions

From The Skullgirls Wiki
Jump to navigation Jump to search
(Created page)
 
m (Protected "Template:Spoiler/doc" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
 
(No difference)

Latest revision as of 14:48, 28 October 2026

{{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.