Template:SpoilerBegin/doc

This template (and its counterpart SpoilerEnd) has been almost wholesale copied from the Sryth Wiki, with minor changes to adapt to SSSS being a newer Wikia (with Mediawiki 1.19, the Wikia skin instead of Monobook, support for template documentation being separate from the template itself etc.).

Description
This template creates the begin of a small (wiki)table with two rows, and SpoilerEnd closes that table. The top row contains a caption and Expand/Collapse links, and the other rows will not be shown unless the reader clicks "Expand" (or his browser does not allow the JavaScript to be run). Unlike with the one-stop Spoiler template, the split allows you to add wikitables between the two templates.

The Spoiler* templates are ill-suited to make spoilers out of entire text paragraphs (because of the table being added around the spoiler; use the HiddenText template for that).

The template is ultimately based on the "mwcollapsible" class as provided by Wikia. An example of the JavaScript that actually makes it work is shown on the Wikia Developers Wiki.

Syntax
... hidden text (or code) ...

or in a more compact form

... hidden text (or code) ...

Example
shows