Template:Spoiler: Difference between revisions

Template page
w:c:strategywiki>Prod
(mw-collapsible)
w:c:strategywiki>Prod
(add class)
Line 1: Line 1:
<templatestyles src="Template:Spoiler/styles.css" />{{-}}<div class="mw-collapsible mw-collapsed spoiler_box"><div>{{{title|Spoiler}}}</div><div class="mw-collapsible-content">{{{content|{{{1|}}}}}}</div></div><noinclude>
<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">{{{content|{{{1|}}}}}}</div></div><noinclude>
{{TemplateStyles|Template:Spoiler/styles.css}}
{{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 {{t|spoilerspage}}.

Revision as of 22:51, 6 August 2021

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.