Difference between revisions of "Template:Spoiler"

Explain xkcd: It's 'cause you're dumb.
Jump to: navigation, search
m
m
Line 1: Line 1:
 
<noinclude>===Usage===
 
<noinclude>===Usage===
 
This template is for marking spoilers.
 
This template is for marking spoilers.
For instance, to spoiler "[[109:_Spoiler_Alert|Snape kills Trinity with Rosebud!]]", you would type <code><nowiki>{{Spoiler|Snape kills Trinity with Rosebud!}}</nowiki></code> for a result of "<span style="color: lightgray"><span style="background-color: lightgray">Snape kills Trinity with Rosebud!</span></span>"
+
For instance, to spoiler "[[109:_Spoiler_Alert|Snape kills Trinity with Rosebud!]]", you would type <code><nowiki>{{Spoiler|Snape kills Trinity with Rosebud!|''Harry Potter and the Half-Blood Prince'', ''Citizen Kane'', and ''The Matrix Revolutions''}}</nowiki></code> for a result of ""
 
===Wikicode===
 
===Wikicode===
<code><nowiki><span style="color: lightgray"><span style="background-color: lightgray">{{{1|Snape kills Trinity with Rosebud!}}}</span></span></nowiki></code><includeonly><span style="color: lightgray"><span style="background-color: lightgray">{{{1|Snape kills Trinity with Rosebud!}}}</span></span></includeonly>[[Category: Templates]]</noinclude>
+
<code><nowiki>Spoilers for {{{1|movies}}}: <span style="color: lightgray"><span style="background-color: lightgray">{{{2|Snape kills Trinity with Rosebud!}}}</span></span></nowiki></code><includeonly>Spoilers for {{{1|movies}}}: <span style="color: lightgray"><span style="background-color: lightgray">{{{2|Snape kills Trinity with Rosebud!}}}</span></span></includeonly>[[Category: Templates]]</noinclude>

Revision as of 13:08, 21 April 2021

Usage

This template is for marking spoilers. For instance, to spoiler "Snape kills Trinity with Rosebud!", you would type {{Spoiler|Snape kills Trinity with Rosebud!|''Harry Potter and the Half-Blood Prince'', ''Citizen Kane'', and ''The Matrix Revolutions''}} for a result of ""

Wikicode

Spoilers for {{{1|movies}}}: <span style="color: lightgray"><span style="background-color: lightgray">{{{2|Snape kills Trinity with Rosebud!}}}</span></span>