Template:Spoiler

From The Talos Principle Wiki
Revision as of 17:09, 2 December 2023 by Theadamabrams (talk | contribs) (Matches Common.js and Common.css)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
[ ]
{{{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.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Label2

If included, the button can read, e.g., "Show hint" instead of the default "Show".

Suggested values
hint solution
Example
hint
Stringoptional
Contents1

This will be collapsed by default and will appear when the user clicks a "Show" button.

Contentrequired