Template:Spoiler
Jump to navigation
Jump to search
{{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:
This text does not contain spoilers.This text is a spoiler.
{{{1}}}