Template:Spoiler: Difference between revisions

From Pikmin Fanon
m (1 revision: All pages directly in the Template Category)
No edit summary
Line 1: Line 1:
<div class="notice metadata" id="spoiler" style="border-top:2px solid #ddd; border-bottom:2px solid #ddd;">'''[[Wikipedia:Spoiler warning|Spoiler warning]]: ''Plot or ending details follow.'''''</div><noinclude>[[Category:Templates|{{PAGENAME}}]]</noinclude>
<div class="notice metadata" id="spoiler" style="border-top:2px solid #ddd; border-bottom:2px solid #ddd;">'''[[Wikipedia:Spoiler warning|Spoiler warning]]: ''Secret, plot or ending details follow.'''''</div>{{#if:{{{1|}}}|{{#ifeq:{{{1}}}|hiddenwithend|<div class="navbox collapsible {{{state|collapsed}}}" id="show/hide">}}}}{{#if:{{{1|}}}|{{#ifeq:{{{1}}}|hidden|<div class="navbox collapsible {{{state|collapsed}}}" id="show/hide">}}}}{{#if:{{{1|}}}|{{#ifeq:{{{1}}}|hiddenwithend|
 
{{{2}}}
 
<div class="notice metadata" id="spoilerend" style="border-top:2px solid #ddd; border-bottom:2px solid #ddd;">'''''Spoilers end here.'''''</div></div>}}}}{{#if:{{{1|}}}|{{#ifeq:{{{1}}}|end|
 
{{{2}}}
 
<div class="notice metadata" id="spoilerend" style="border-top:2px solid #ddd; border-bottom:2px solid #ddd;">'''''Spoilers end here.'''''</div>}}}}{{#if:{{{1|}}}|{{#ifeq:{{{1}}}|hidden|
 
{{{2}}}}}}}<noinclude>
 
==Use==
To simply tag a section as a spoiler, put <code><nowiki>{{spoiler}}</nowiki></code> at the start of the section, above everything else.
 
To tag a section as a spoiler and hide it, put <code><nowiki>{{spoiler|hidden|put info to tag and hide here}}</nowiki></code> where you want the hidden info to be.
 
To tag a certain paragraph in a section as a spoiler, put <code><nowiki>{{spoiler|end|info to tag as a spoiler}}</nowiki></code> where you want the tagged info to be.
 
To tag a certain paragraph in a section as a spoiler and hide it, put <code><nowiki>{{spoiler|hiddenwithend}}</nowiki></code> where you want the tagged and hidden info to be.
 
[[Category:Templates|{{PAGENAME}}]]</noinclude>

Revision as of 23:07, 8 April 2011

Use

To simply tag a section as a spoiler, put {{spoiler}} at the start of the section, above everything else.

To tag a section as a spoiler and hide it, put {{spoiler|hidden|put info to tag and hide here}} where you want the hidden info to be.

To tag a certain paragraph in a section as a spoiler, put {{spoiler|end|info to tag as a spoiler}} where you want the tagged info to be.

To tag a certain paragraph in a section as a spoiler and hide it, put {{spoiler|hiddenwithend}} where you want the tagged and hidden info to be.