Template:Spoiler

From OpenMW Wiki
Revision as of 21:03, 16 July 2017 by Darklocq (talk | contribs) (code fix)
Jump to navigation Jump to search

Spoiler: Sample text here.

Documentation

This "hides" spoiler material by making it white like the page background, so that one must highlight it to read it.

Usage:

{{spoiler|1=The text to hide here}}

The 1= (which can also be given as content=) is optional, but safest to include, since the template will break if the content include a = character anywhere in it.

You can change "Spoiler" wording (which gives a note when you over over it) to something else:

{{spoiler|1=The text to hide here. |Major spoiler}}

If a different color is needed, because the background color is different (e.g. inside a colorful sidebar), you can specify a hex color (without the # prefix) or a named CSS color:

{{spoiler|1=The text to hide here. |Major spoiler |color=A9C633}}