Template:SpoilerReplace/doc: Difference between revisions
Jump to navigation
Jump to search
(Imported template from my private wiki) |
m (Protected "Template:SpoilerReplace/doc" ([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.