Template:SpoilerReplace: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
m (Protected "Template:SpoilerReplace" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))) |
(No difference)
| |
Latest revision as of 14:47, 28 October 2026
{{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.
{{{2}}}