Template:Spoiler

From Step Mods | Change The Game
Revision as of 23:36, February 8, 2020 by TechAngel85 (talk | contribs)


Purpose & Usage[edit source]

This template allows text to be clicked like a spoiler to show hidden text immediately underneath it.

Parameters[edit source]

  • 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[edit source]

Code:

{{Spoiler|shown=Click Me!|hidden=Where did this come from?}}

Result:

➕ Click Me!
Where did this come from?

Known Issues[edit source]

  • Incompatible with CSS extension

See Also[edit source]

No similar templates known.