Difference between revisions of "Template:Spoiler"
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 | + | 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>" |
===Wikicode=== | ===Wikicode=== | ||
− | <code><nowiki>Spoilers for {{{ | + | <code><nowiki>Spoilers for {{{Movies|movies}}}: <span style="color: lightgray"><span style="background-color: lightgray">{{{Spoiler|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:12, 21 April 2021
Usage
This template is for marking spoilers.
For instance, to spoiler "Snape kills Trinity with Rosebud", you would type {{Spoiler|Movies=''Harry Potter and the Half-Blood Prince'', ''Citizen Kane'', and ''The Matrix Revolutions''|Spoiler=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 {{{Movies|movies}}}: <span style="color: lightgray"><span style="background-color: lightgray">{{{Spoiler|Snape kills Trinity with Rosebud!}}}</span></span>