Template:Spoiler/doc
Description
[edit]This template should be used to denote fiction sections that contain spoilers for fiction released in the 30 days. Prime dying is no longer a spoiler, if it ever was. For more on when and where to use this template, see Transformers Wiki:Spoilers.
Usage
[edit]Parameters
[edit]This template has two optional parameters:
- The name to Storylink to of an article that the section spoils.
- The time at which the spoilers will expire. Strongly recommended 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.
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
Code
[edit]{{Spoiler|Main Page|August 12}}
Examples
[edit]Code
[edit]{{Spoiler|2=August 12}}
Result
[edit]![]() Spoiler warning: Plot details follow. |
Code
[edit]{{Spoiler|Main Page}}
Result
[edit]![]() Spoiler warning: Plot details for Main Page follow. of the next episode/issue in the series or 30 days after release, whichever is sooner |
Code
[edit]{{Spoiler|Main Page|August 12}}
Result
[edit]![]() Spoiler warning: Plot details for Main Page follow. |
Technical Documentation
[edit]Architecture
[edit]This template calls Template:spoiler/guts to render its message box. 'Template:spoiler/guts' in turn calls Template:Messagebox with specific parameters to create the messagebox content. 'Template:spoiler/guts' was recursive at one time. However, since template recursion was removed in a MediaWiki update, the portions of the functionality responsible for determining styling/formatting based on the expiration date have been split out to Template:spoiler/guts_recurs.
This template was designed by User:Derik Feel free to ask him questions about it when it inevitably breaks.
Last Good Version
[edit]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.
If you make changes to the template's look, please update the 'last good' dates.


