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|Movies=''Harry Potter and the Half-Blood Prince'', ''Citizen Kane'', and ''The Matrix Revolutions''|Spoiler=Snape kills Trinity with Rosebud.}}</nowiki></code> for a result of "Spoilers for ''Harry Potter and the Half-Blood Prince'', ''Citizen Kane'', and ''The Matrix Revolutions'': <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|''Harry Potter and the Half-Blood Prince'', ''Citizen Kane'', and ''The Matrix Revolutions''|Snape kills Trinity with Rosebud.}}</nowiki></code> for a result of "Spoilers for ''Harry Potter and the Half-Blood Prince'', ''Citizen Kane'', and ''The Matrix Revolutions'': <span style="color: lightgray"><span style="background-color: lightgray">Snape kills Trinity with Rosebud.</span></span>"
 
===Wikicode===
 
===Wikicode===
<code><nowiki>Spoilers for {{{Movies|''Harry Potter and the Half-Blood Prince'', ''Citizen Kane'', and ''The Matrix Revolutions''}}}: <span style="color: lightgray"><span style="background-color: lightgray">{{{Spoiler|Snape kills Trinity with Rosebud!}}}</span></span></nowiki></code><includeonly>Spoilers for {{{Movies|''Harry Potter and the Half-Blood Prince'', ''Citizen Kane'', and ''The Matrix Revolutions''}}}: <span style="color: lightgray"><span style="background-color: lightgray">{{{Spoiler|Snape kills Trinity with Rosebud!}}}</span></span></includeonly>[[Category: Templates]]</noinclude>
+
<code><nowiki>Spoilers for {{{1|''Harry Potter and the Half-Blood Prince'', ''Citizen Kane'', and ''The Matrix Revolutions''}}}: <span style="color: lightgray"><span style="background-color: lightgray">{{{2|Snape kills Trinity with Rosebud.}}}</span></span></nowiki></code><includeonly>Spoilers for {{{1|''Harry Potter and the Half-Blood Prince'', ''Citizen Kane'', and ''The Matrix Revolutions''}}}: <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:19, 21 April 2021

Usage

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

Wikicode

Spoilers for {{{1|''Harry Potter and the Half-Blood Prince'', ''Citizen Kane'', and ''The Matrix Revolutions''}}}: <span style="color: lightgray"><span style="background-color: lightgray">{{{2|Snape kills Trinity with Rosebud.}}}</span></span>