Template:Spoiler/doc

From The Nitrome Wiki
Jump to navigation Jump to search

Description

This template is used to directly insert spoilers into a section within an article and conceal that spoiler from the rest of the text until opened.

Parameters

Parameter Description
1 Spoiler content
type Context of the type of spoiler. Optional if a heading directly precedes the spoiled content.
style Additional styling parameters.

Sample output

{{spoiler|Everyone dies at the end.}} gives...

Penguin 1.png This collapsible box contains a spoiler! Use [show] to reveal.

Everyone dies at the end.

{{spoiler|type=Last level of Ditto|Everyone dies at the end.}} gives...

Penguin 1.png This collapsible box contains a spoiler! Use [show] to reveal. (Context: Last level of Ditto)

Everyone dies at the end.

See also