Template:Spoiler: Difference between revisions
From Pikmin Fanon
(→Use) |
mNo edit summary |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<div class="notice metadata" id="spoiler" style="border-top:2px solid #ddd; border-bottom:2px solid #ddd;">''' | <div class="notice metadata" id="spoiler" style="border-top:2px solid #ddd; border-bottom:2px solid #ddd;">'''{{w|Spoiler (media)|Spoiler warning}}: ''Secret plot or ending details follow.'''''</div>{{#if:{{{1|}}}|{{#ifeq:{{{1}}}|hiddenwithend|<div class="navbox collapsible {{{state|collapsed}}}" id="show/hide" style="margin-top: 7px; background-color: none; border: 0px solid #cbd; width:100%;">}}}}{{#if:{{{1|}}}|{{#ifeq:{{{1}}}|hidden|<div class="navbox collapsible {{{state|collapsed}}}" id="show/hide" style="margin-top: 7px; background-color: none; border: 0px solid #cbd; width:100%;">}}}}{{#if:{{{1|}}}|{{#ifeq:{{{1}}}|hiddenwithend| | ||
{{{2}}} | {{{2}}} | ||
Line 12: | Line 12: | ||
==Use== | ==Use== | ||
{{clean|Also, make sure this template works as intended.}} | |||
To simply tag a section as a spoiler, put <code><nowiki>{{spoiler}}</nowiki></code> at the start of the section, above everything else. | 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}}</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, 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|info to tag as a spoiler and hide}}</nowiki></code> where you want the tagged and hidden info to be. | |||
[[Category:Templates|{{PAGENAME}}]]</noinclude> | [[Category:Templates|{{PAGENAME}}]]</noinclude> |
Latest revision as of 16:12, 5 April 2023
Use
Notes: Also, make sure this template works as intended. |
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}}
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|info to tag as a spoiler and hide}}
where you want the tagged and hidden info to be.