Template:Spoiler/doc

From MediaWiki
Revision as of 02:42, 19 June 2022 by Tigerpaw28 (talk | contribs) (Automated documentation update)
Jump to navigationJump to search

Description

Usage

Parameters

This template does not have parameters.

Code

{{Spoiler/doc}}

Examples

Code

{{Spoiler/doc}}

Result

Examples

{{Spoiler}}

Spoiler warning: Plot details follow.

Please give an expiry date ({{spoiler|(story)|DATE}}) - either the date
of the next episode/issue in the series or 30 days after release, whichever is sooner


This template includes an optional storylink parameter. You can include a link to the article the section spoils with the following syntax:

{{Spoiler|Main Page}}

Spoiler warning: Plot details for Main Page follow.

Please give an expiry date ({{spoiler|(story)|DATE}}) - either the date
of the next episode/issue in the series or 30 days after release, whichever is sooner


This template also includes an optional (but recommended) expiration time parameter. You can set a plain-English date such as 'August 12' to indicate when the spoiler will expire, and the tag will indicate how long it has until it does expire. This is to let readers know how 'fresh' the spoilers are, and to let editors know when it is alright to include this information in the larger article without 'compartmentalizing' it in the section below the spoiler tag.

{{Spoiler|Main Page|August 12}}

Spoiler warning: Plot details for Main Page follow.

Spoilers expire in 72 days


Articles for which no expiration date is set are sorted into Category: Articles with nonexpiring spoiler tags

Once an expiration date has passed, the articles are sorted into Category: Articles with expired spoilers tags

Technical Documentation

Architecture

Note for future editors: This template requires both the sub-template Template:Spoiler/guts and the redirect to that sub-template Template:Spoiler/guts_recurs in order to work. If somethign is broken, look there.

The 'rendering' portion of this template is handles in the first section of Template:Spoiler/guts. That is where the output can be adjusted. See also: Template:messagebox, the output template being used.

This template was designed by user:Derik Feel free to ask him questions about it when it inevitably breaks.

Last Good Version

If something is broken and you need to quickly revert this template to fix it:

The last good "Dumb" version of this template is

The last good "Smart" (expiring) versions of this template/subtemplate are June 12.


Old 'Last Good Versions'

Older 'Last good' versions of the smart templates are below:


If you make changes to the template's look, please update the 'last good' dates.