Template:Spoiler
From Step Mods | Change The Game
Purpose & Usage
This template allows text to be clicked like a spoiler to show hidden text immediately underneath it.
Parameters
- parameter shown is the text clicked to show the hidden content
- parameter hidden is the hidden content
- parameter h2 if set to 1 will make the shown text have the initial display property (useful for the header 2 level, since it is underlined).
Examples
Code:
{{Spoiler|shown=Click Me!|hidden=Where did this come from?}}
Result:
➕ Click Me!
Where did this come from?
Code:
{{Spoiler|shown=Click To Reveal Hidden List|hidden=<br> # Beginning with a list}}
Result:
➕ Click To Reveal Hidden List
some text
- Beginning with a list
Code:
{{Spoiler|shown=Click To Reveal Hidden Heading|hidden=<br> some text ==Include a heading== some text }}
Result:
➕ Click To Reveal Hidden Heading
some text
Include a heading
some textKnown Issues
- Wiki markup for lists will not be honored unless a
<br>
tag is used at the beginning of the hidden text followed by a line break in the markup. - Wiki markup for headings will not be honored unless a
<br>
tag is used at the beginning of the hidden text and followed by a line break in the markup AND a line break in the markup followed by a<br>
tag. - Incompatible with CSS extension
See Also
No similar templates known.