Template:SpoilerText

From DREDGE Wiki
Jump to navigation Jump to search

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

Template parameters

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

Examples

Code Result
{{SpoilerText|Example text}} (Click to toggle) Example text
{{SpoilerText|Example text with a [[Template:Navbox|link]]}} (Click to toggle) Example text with a link

Dependencies

For this template to work properly this wiki relies on the following:

Source

Base code adapted from Template:Spoiler on Terraria Wiki. Documentaition adapted from Template:Spoiler warning from defaultloadout.wiki.gg.