Difference between revisions of "Template:Spoiler"

Explain xkcd: It's 'cause you're dumb.
Jump to: navigation, search
m
m
Line 3: Line 3:
  
 
This template is for marking spoilers.
 
This template is for marking spoilers.
For instance, to spoiler "Snape kills Trinity with Rosebud", you would type "<code><nowiki>{{Spoiler|''xkcd 109''|Snape kills Trinity with Rosebud.}}</nowiki></code>" for a result of "Spoiler[s] for ''xkcd 109'': <span style="color: lightgray"><span style="background-color: lightgray">Snape kills Trinity with Rosebud.</span></span>"
+
For instance, to spoiler "Snape kills Trinity with Rosebud", you would type "<code><nowiki>{{Spoiler|Snape kills Trinity with Rosebud.|''xkcd 109''}}</nowiki></code>" for a result of "Spoiler[s] for ''xkcd 109'': <span style="color: lightgray"><span style="background-color: lightgray">Snape kills Trinity with Rosebud.</span></span>"
  
 
===Wikicode===
 
===Wikicode===
  
<code><nowiki>Spoiler[s] for {{1||''xkcd 109''}}: <span style="color: lightgray"><span style="background-color: lightgray">{{{2|Snape kills Trinity with Rosebud}}}</span></span></nowiki></code></noinclude><includeonly>Spoiler[s] for {{{1||''xkcd 109''}}}: <span style="color: lightgray"><span style="background-color: lightgray">{{{2|Snape kills Trinity with Rosebud}}}</span></span></includeonly><noinclude>[[Category: Templates]]</noinclude>
+
<code><nowiki><span style="color: lightgray"><span style="background-color: lightgray">{{{1|Snape kills Trinity with Rosebud}}}</span></span> (spoiler[s] for {{{2|''xkcd 109''}}})</nowiki></code></noinclude><includeonly><span style="color: lightgray"><span style="background-color: lightgray">{{{1|Snape kills Trinity with Rosebud}}}</span></span> (spoiler[s] for {{{2|''xkcd 109''}}}</includeonly><noinclude>[[Category: Templates]]</noinclude>

Revision as of 14:30, 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.|''xkcd 109''}}" for a result of "Spoiler[s] for xkcd 109: Snape kills Trinity with Rosebud."

Wikicode

<span style="color: lightgray"><span style="background-color: lightgray">{{{1|Snape kills Trinity with Rosebud}}}</span></span> (spoiler[s] for {{{2|''xkcd 109''}}})