Template:Spoiler: Difference between revisions

Template page
w:c:strategywiki>Prod
m (content shouldn't spill out)
m (22 revisions imported: Imported from https://strategywiki.org/)
 
(12 intermediate revisions by 3 users not shown)
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>
<templatestyles src="Template:Spoiler/styles.css" />{{-}}<div class="mw-collapsible mw-collapsed spoiler_box"><div class="spoiler_box_title">{{{title|Spoiler}}}</div><div class="mw-collapsible-content">
<div class="NavContent" style="text-align:left;display:none">
{{{content|{{{1|}}}}}}
----
{{-}}</div></div><noinclude>
{{{content|{{{1}}}}}}{{-}}</div></div><noinclude>
{{TemplateStyles|Template:Spoiler/styles.css}}
Template for hiding small spoiler sections. If a whole page is a spoiler, use {{t|spoilerspage}}.


Template for hiding small spoiler sections. If a whole page is a spoiler, use the [[Template:Spoilers]] 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 <code>title</code> parameter.


To change the title of the box to something else, set the |title parameter.
[[Category:Templates]]</noinclude>
 
[[Category:Templates|S]]</noinclude>

Latest revision as of 18:29, 28 October 2023

Spoiler

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.