Template:Spoiler

From Fields of Mistria Wiki
Jump to navigation Jump to search
Template documentation
Note: portions of the template sample may not be visible without values provided.
View or edit this documentation. (About template documentation)
Editors can experiment in this template's sandbox and test case pages.

This template can be used to mark text as a spoiler.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Text1 text

The text to be shown.

Example
Character A died during the battle.
Contentrequired
Show on Hover?hover

Show spoiler text on mouse hover.

Default
hover=no
Example
hover=yes
Booleanoptional

The hoverShowSpoilers gadget

Users can enable Gadget - hoverShowSpoilers to make spoilers show on hover, not just on click. The code for this gadget can be found at Gadget - hoverShowSpoilers.css.

Examples

Code Result
{{spoiler|spoiler text}} (Click to toggle) spoiler text
{{spoiler|spoiler text with a [[Template:Navbox|link]]}} (Click to toggle) spoiler text with a link
{{spoiler|hover=yes|spoiler text that shows on hover}} (Hover to toggle) spoiler text that shows on hover

Dependencies

For this template to work properly, you need the following:

Source

Base code adapted from Template:Spoiler on Terraria Wiki.