Template:SpoilerReplace/doc
Jump to navigation
Jump to search
{{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:
This text does contain spoilers.