Template:Spoiler box

Template page
Revision as of 20:57, 19 February 2024 by Mausterio (talk | contribs) (Created page with "<includeonly><div class="spoilerbox mw-collapsible mw-collapsed"> <div class="spoilerbox-header">{{#if:{{{header|}}}|{{{header}}}|Spoiler content}}</div> <div class="spoilerbox-content mw-collapsible-content">{{#if:{{{content|}}}|{{{content}}}|The <code>content</code> parameter is empty.}}</div> </div><templatestyles src="Template:Spoiler box/styles.css"/></includeonly><noinclude>{{/doc}}</noinclude>")
Template documentation[view][edit][history][purge]
This documentation is transcluded from Template:Spoiler box/doc. Changes can be proposed in the talk page.

This template is used to hide content in a spoiler box. User can click the expand button to expand the spoiler box to see the content.

TemplateData

Used to hide content in a spoiler box. User can click the expand button to expand the spoiler box to see the content.

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Contentcontent

The content that is hidden in the spoiler box

Contentrequired
Header textheader

Short descriptive text of the content that is always visible.

Default
Spoiler content
Stringsuggested