Difference between revisions of "Template:spoiler"

Explain xkcd: It's 'cause you're dumb.
Jump to: navigation, search
m
m
 
(15 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{notice2|<big><big>{{#if:{{{1|}}}|'''[[109: Spoiler Alert|Spoiler alert!]]'''|'''Spoiler alert!'''}}</big></big><br><!--
+
<span class="plainlinks">{{notice2|<big><big>{{#if:{{{1|}}}|'''[[109: Spoiler Alert|''Spoiler alert!'']]'''|'''''Spoiler alert!'''''}}</big></big><br><!--
  
-->{{{1|The following explanation contains [[109: Spoiler Alert|spoilers]].}}}}}<noinclude>
+
-->{{{1|The following explanation contains [[109: Spoiler Alert|spoilers]].}}}}}</span><noinclude>
  
===Usage===
+
==Usage==
If you do not include the reason for the spoiler notice, this is what it will look like: <code>{{<nowiki></nowiki>spoiler}}</code>
+
If you do not include the reason for the spoiler notice, this is what it will look like:
  
{{spoiler}}
+
<code>{{<nowiki></nowiki>spoiler}}</code>{{spoiler}}
  
 
If you include a reason, you'll get this:
 
If you include a reason, you'll get this:
  
<code>{{<nowiki></nowiki>spoiler|reason}}</code>  
+
<code>{{<nowiki></nowiki>spoiler|reason}}</code>{{spoiler|reason}}
{{spoiler|reason}}
 
 
[[Category: Templates]]
 
[[Category: Templates]]

Latest revision as of 17:48, 28 March 2025

warning!!.png Spoiler alert!
The following explanation contains spoilers.

Usage[edit]

If you do not include the reason for the spoiler notice, this is what it will look like:

{{spoiler}}
warning!!.png Spoiler alert!
The following explanation contains spoilers.

If you include a reason, you'll get this:

{{spoiler|reason}}