Template:SpoilerReplace

From The Skullgirls Wiki
Revision as of 14:31, 28 October 2026 by Nacho-dipsauce14 (talk | contribs) (Imported template from my private wiki)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


Template documentation(view) (edit) (history)


{{SpoilerReplace|NoSpoilerHere|SpoilerHere}}

Description

This template is similar to Spoiler. However, instead of completely hiding spoiler text until toggled, it dynamically replaces non-spoiler text with spoiler-containing text when the spoiler button is activated.

Unlike Spoiler, this template must be used in combination with SpoilerButton, as it does not feature a built-in button parameter.

The first parameter is used for the non-spoiler text, and the second parameter is used for the spoiler version.

Example

Input:

{{SpoilerButton}}
{{SpoilerReplace|This text does not contain spoilers.|This text '''does''' contain spoilers.}}

Output:

Show/Hide spoilers

This text does contain spoilers.

{{{2}}}