Template:Spoiler: Difference between revisions

Template page
w:c:strategywiki>Prod
m (added clear before, fixed css)
w:c:strategywiki>Prod
(cleanup)
Line 1: Line 1:
<div style="clear:both"></div><div class="NavFrame" style="padding:0;border:1px solid #bc7d7d"><div class="NavHead" style="font-weight:bold;background-color:#f1d0d0;font-size:1.2em;">{{{title|Spoiler}}}</div><div class="NavContent" style="text-align:left;display:none">
{{-}}<div class="NavFrame" style="padding: 0; border: 1px solid #bc7d7d"><p class="NavHead" style="position: relative; background-color: #f1d0d0; font-size: 1.2em;">'''{{{title|Spoiler}}}'''</p><div class="NavContent" style="text-align: left; display: none; border-top: 1px solid #ccc; padding: 1em;">{{{content|{{{1|}}}}}}</div></div><noinclude>
----
{{{content|{{{1}}}}}}<div style="clear:both"></div></div></div><noinclude>


Template for hiding small spoiler sections. If a whole page is a spoiler, use the [[Template:Spoilerspage]] template.
Template for hiding small spoiler sections. If a whole page is a spoiler, use {{t|spoilerspage}}.


The first parameter is the information to hide in the spoiler box. To change the title of the box to something else, set the <code>title</code> parameter.
The first parameter is the information to hide in the spoiler box. To change the title of the box to something else, set the <code>title</code> parameter.


[[Category:Templates|S]]</noinclude>
[[Category:Templates]]</noinclude>

Revision as of 03:50, 19 April 2020

Template for hiding small spoiler sections. If a whole page is a spoiler, use {{spoilerspage}}.

The first parameter is the information to hide in the spoiler box. To change the title of the box to something else, set the title parameter.