Difference between revisions of "Template:Spoiler"

From Hgames Wiki
Jump to: navigation, search
(Try using JavaScript. Don't know whether this will work.)
Line 1: Line 1:
<span class="spoiler" style="border: 1px solid lightGrey; color: transparent;">{{{1}}}</span><noinclude>
+
<span class="spoiler" style="border: 1px solid lightGrey;" onmouseover="this.style.textDecoration = 'underline'" onmouseout="this.style.textDecoration = 'none'">{{{1}}}</span><noinclude>
 
{{documentation}}</noinclude>
 
{{documentation}}</noinclude>

Revision as of 02:38, 5 October 2024

{{{1}}}

Template documentation (for the above template, sometimes hidden or invisible)
Description
This template is used to mark a page as having major spoilers. This should only be used on a wiki if most users wish to see it.
Syntax
Type {{spoiler}} somewhere.
Sample output
{{spoiler}} gives...
Spoiler warning!
This article contains plot details about an upcoming episode.

Visit Template:Spoiler/doc to edit this text! (How does this work?)