Template:SpoilerButton: Difference between revisions
Jump to navigation
Jump to search
(Imported template from my private wiki) |
mNo edit summary |
||
| Line 1: | Line 1: | ||
<noinclude>{{doc}}</noinclude><div class="wds-button mw-customtoggle-ShowSpoiler">Show/Hide spoilers</div> | <noinclude>{{doc}}[[Category:Spoiler Templates]]</noinclude><div class="wds-button mw-customtoggle-ShowSpoiler">Show/Hide spoilers</div> | ||
<noinclude> | <noinclude> | ||
Revision as of 14:41, 28 October 2026
This template creates a button on the page to toggle spoiler content on and off. It is designed to work in conjunction with Spoiler and SpoilerReplace.
Spoiler includes a built-in button functionality when its second parameter is set to yes, making the standalone placement of this template optional. SpoilerReplace does not have this feature and relies on this template.
Please note that the inclusion of this button will affect all spoiler on the same page. It does not affect other collapsable elements.