FANDOM


This is the documentation page for {{Spoiler}} and its implementation.

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.

ExampleEdit


This section contains spoilers for:
Dragon Age II.


Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur nec turpis ligula. Proin imperdiet imperdiet ullamcorper. Sed semper enim quis justo tempus et rhoncus lorem ultrices. Donec blandit, lorem eu commodo pretium, lorem dui tempus lacus, non pulvinar lacus tellus eget dui. Sed et sem lorem, et dapibus felis. Fusce ut sem vitae nulla dignissim gravida. Integer ut enim risus, a luctus neque. Vivamus ultrices, turpis ac ornare rutrum, lectus felis rhoncus massa, eu cursus tortor erat ut enim. Aliquam erat volutpat. Donec a metus nisl, eu molestie urna. Etiam lobortis lacus in ante congue id vestibulum leo sagittis. Duis vitae augue a nisl viverra interdum. Curabitur in felis vel diam fermentum fringilla. Nam justo sapien, adipiscing et interdum et, consectetur vitae massa. Aliquam erat volutpat. Quisque pellentesque, orci et eleifend mattis, lacus arcu lacinia odio, id lacinia justo augue in sapien. Mauris erat nulla, venenatis eu accumsan et, convallis sed odio.

ComponentsEdit

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


JavascriptEdit

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

StylingEdit

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 "spoilers" to get the stylesheet for the spoilers. Then copy the subsections "spoilers: games, spoilers: media and spoilers: books" to which contains the color and background images for each spoilers.

Wiki MarkupEdit

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

UsageEdit

See Template:Spoiler/doc for complete documentation on the usage for spoilers.


VersionsEdit

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
Community content is available under CC-BY-SA unless otherwise noted.