Template:Spoiler


 * }

Purpose
This template is meant to replace the old tags, that (as of November 2011) has grown increasingly unreliable, failing at unpredictable times after trivial changes in a page's code.

There is a new mechanic, explained in the Mediawiki manual, to make any element collapsible, but for the moment Wikia has 1.16 so we're stuck with Collapsible tables (very useful nonetheless)

Documentation
or in a more compact form

Wikitables
The wikicode to be hidden can be almost anything (including templates), except wikitables.

This template is not adequate to hide wikitables. If you want to hide a table within a spoiler, use the SpoilerBegin/SpoilerEnd templates (see Example 6 below)
 * WARNING

You can also use SpoilerBegin/SpoilerEnd to hide any other thing. In fact, this template itself uses them (it's just a shortcut, and allows to put the hidden text inside the template)

The syntax would be

Text to hide

SpoilerTag Test
This section shows an old-style spoiler tag, to serve as a test of its workings. The code used is

This is a big game secret If you just see a blank space above this line, it's that bug kicking in.

Example 1 - Placeholders


shows

Example 2 - Minimum required
shows

Example 3 - Custom text to show and class
shows

Example 4 - Hidden text with a little format
shows

Example 5 - Row params
shows:

Example 6 - Lists and complex content, including templates
shows

Example 6 - Hiding wikitables
Basically, you have to call SpoilerBegin with the same parameters you would call Spoiler (except the first unnamed parameter will be the text to show), and the SpoilerEnd to close the spoiler.

shows