Template:Spoiler
[ ]
{{{1}}}
A collapsible block with custom text for the toggle label.
For example:
{{Spoiler|The cake is a lie!}}
produces:
[ ]
The cake is a lie!
You can add a second argument if you want to customise the toggle label:
{{Spoiler|The cake is a lie!|massive spoiler}}
produces:
[ massive spoiler ]
The cake is a lie!
A collapsible block.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Label | 2 | If included, the button can read, e.g., "Show hint" instead of the default "Show".
| String | optional |
Contents | 1 | This will be collapsed by default and will appear when the user clicks a "Show" button. | Content | required |