Template:Spoiler/doc: Difference between revisions
hrm... |
No edit summary |
||
| Line 1: | Line 1: | ||
==Examples== | |||
'''<tt><nowiki>{{Spoiler}}</nowiki></tt>''' | |||
{{Spoiler|nocats=true}} | |||
This template includes an optional '''storylink''' parameter. You can include a link to the article the section spoils with the following syntax: | This template includes an optional '''storylink''' parameter. You can include a link to the article the section spoils with the following syntax: | ||
| Line 4: | Line 8: | ||
{{Spoiler|ARTICLENAME|nocats=true}} | {{Spoiler|ARTICLENAME|nocats=true}} | ||
This template also includes an optional '''expiration | 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. | ||
'''<tt><nowiki>{{Spoiler|ARTICLENAME|August 12}}</nowiki></tt>''' | |||
{{Spoiler|ARTICLENAME|August 12|nocats=true}} | |||
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 [[http://transformers.wikia.com/index.php?title=Template:Spoiler&oldid=197858 June 9, 2008]]. | |||
The last good "Smart" (expiring) versions of this template/subtemplate are June 12. [http://transformers.wikia.com/index.php?title=Template:Spoiler&oldid=199293 Template:spoiler] [http://transformers.wikia.com/index.php?title=Template:Spoiler/guts&oldid=199287 Template:spoiler/guts] [http://transformers.wikia.com/index.php?title=Template:Spoiler/guts_recurs&oldid=199285 Template:spoiler/guts_recurs] | |||
====Old 'Last Good Versions'==== | |||
Older 'Last good' versions of the smart templates are below: | |||
* None yet. | |||
''' | '''If you make changes to the template's look, please update the 'last good' dates.''' | ||
<noinclude>[[Category: Externalized documentation]]</noinclude> | <noinclude>[[Category: Externalized documentation]]</noinclude> | ||
Revision as of 19:56, 12 June 2008
Examples
{{Spoiler}}
![]() Spoiler warning: Plot details follow. 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|ARTICLENAME}}
![]() Spoiler warning: Plot details for ARTICLENAME follow. 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|ARTICLENAME|August 12}}
![]() Spoiler warning: Plot details for ARTICLENAME follow. |
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 [June 9, 2008].
The last good "Smart" (expiring) versions of this template/subtemplate are June 12. Template:spoiler Template:spoiler/guts Template:spoiler/guts_recurs
Old 'Last Good Versions'
Older 'Last good' versions of the smart templates are below:
- None yet.
If you make changes to the template's look, please update the 'last good' dates.


