Template:Spoilers/doc

Add Spoilers around article data (such as a page or section) to hide it until expanded. This can optionally add a content warning to the page or section as well.

For Visual Editor users that want to hide formatted content, it may be easier to use Template:Spoilersopen (with identical parameters) at the start of the collapsed section and Template:Spoilersclose at the end.

TemplateData
{	"params": { "warning": { "label": "Content warning option", "description": "Whether or not the section should have a content warning attached.", "type": "boolean" },		"topic": { "label": "Content warning type", "description": "Names the type of potentially triggering content in this article. This will be added to the content warning box at the top of this page or section if the warning parameter is filled.", "type": "line" },		"title": { "label": "Section title", "description": "Title of a hidden section.", "type": "line" },		"page_contents": { "label": "Page contents", "description": "Actual content, such as pages or page sections, possibly including infoboxes and galleries. Anything that should be hidden within the collapsible section.", "type": "content", "suggested": true }	},	"description": "Hides sections of content until expanded." }