Template:Spoiler/doc

This is the documentation page for Spoiler and its implementation. This template originated in the Dragon Age Wiki.

The spoiler template is a simple design using jQuery. The spoiler tags are localized using cookies set indefinitely on the reader's system. As such the spoiler tags are unique to each browser. If the reader switches systems or browsers, the spoilers will not persist. The spoiler state will persist regardless of whether the user is logged in or logged out.

A spoiler tag can be used to enclose articles, tables, images and any other wiki markup.

Components
Using the spoilers requires the addition of a scripting component, a stylesheet component and a markup component.

Javascript
This component contains the toggling component and the persistance (cookies) of the spoilers. Copy the code from MediaWiki:Common.js under the section entitled " ".

Styling
The stylesheet handles the styling of the spoiler. It is possible to restyle the spoilers to any design by changing this the stylesheet. Dragon Age Wiki's stylesheets are located at MediaWiki:Common.css. Copy the section " " to get the stylesheet for the spoilers. Then copy the subsections ",  and  " to which contains the color and background images for each spoilers.

Wiki Markup
The wiki markup contains the HTML code for the spoiler tags. Copy the code from Spoiler. Do not change this code.

Versions
This is a change log. If you adopted the spoiler system prior to dates, you will need to update your spoiler components accordingly.

v1.0.1 - 25th October 2013
 * Documented implementation.

v1.0 - 30th June 2013
 * Release