Template:SpoilerText
Jump to navigation
Jump to search
This template can be used to mark text as a spoiler.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Text | 1 text | The text to be shown.
| Content | required |
Show on Hover? | hover | Show spoiler text on mouse hover.
| Boolean | optional |
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:
- The small JavaScript code for toggling the
.spoiler
class on/off on click, found in MediaWiki:Common.js. - The
.spoiler-content
and any related classes, found in MediaWiki:Common.css.
Source
Base code adapted from Template:Spoiler on Terraria Wiki. Documentaition adapted from Template:Spoiler warning from defaultloadout.wiki.gg.
Category:
- Formatting templates