Template:Spoiler/doc

This template 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 a small (wiki)table with two rows. The top row contains a caption and Expand/Collapse links, and the bottom row will not be shown unless the reader clicks "Expand" (or his browser does not allow the JavaScript to be run).

It uses the SpoilerBegin template (but not SpoilerEnd), which contains the fine-tuning like colors and border widths.

The Spoiler template is not suitable to have spoilers contain another wikitable (use the SpoilerBegin and SpoilerEnd templates for that purpose), and 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
or in a more compact form

Placeholders only


shows

Minimal content
shows

Caption, row params and some text formatting
shows: