Template:Spoiler: Difference between revisions

Template page
w:c:strategywiki>Najzere
m (adding usage, changing full page spoiler template link)
w:c:strategywiki>Prod
m (added clear before, fixed css)
Line 1: Line 1:
<div class="NavFrame" style="border:1px solid #bc7d7d"><div class="NavHead" style="text-align:center;font-weight: bold;background-color:#f1d0d0;font-size:1.2em">{{{title|Spoiler}}}</div><div class="NavContent" style="text-align:left;display:none">
<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">
----
----
{{{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 the [[Template:Spoilerspage]] template.

Revision as of 07:48, 2 March 2011

Template for hiding small spoiler sections. If a whole page is a spoiler, use the Template:Spoilerspage template.

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.