Template:Spoiler: Difference between revisions
Jump to navigation
Jump to search
m (test) |
(Updated the syntax to accept |start and |end inputs. This now makes the {{endspoiler}} template obsolete.) |
||
Line 1: | Line 1: | ||
{{#ifeq: {{{1}}} | end | </div><div class="notice metadata endspoiler" id="spoiler">'''''Spoilers end here.'''''</div> | <div class="notice metadata" id="spoiler">'''[[Wikipedia:Spoiler warning|Spoiler warning]]: ''Plot and/or ending details follow.'''''</div><div style="margin:1em 3em;">}} | {{#ifeq: {{{1}}} | end | </div><div class="notice metadata endspoiler" id="spoiler">'''''Spoilers end here.'''''</div> | <div class="notice metadata" id="spoiler">'''[[Wikipedia:Spoiler warning|Spoiler warning]]: ''Plot and/or ending details follow.'''''</div><div style="margin:1em 3em;">}} | ||
<noinclude> | <noinclude> | ||
</div> | |||
== Description == | == Description == | ||
This template begins a section | This template begins and ends a section of spoilers. | ||
== Syntax == | |||
=== <nowiki>{{spoiler|start}}</nowiki> === | |||
This marks the beginning of a spoiler. You can also just use <nowiki>{{spoiler}}</nowiki> | |||
=== <nowiki>{{spoiler|end}}</nowiki> === | |||
This marks the end of a spoiler. | |||
</noinclude> |
Revision as of 09:38, 31 October 2011
Description
This template begins and ends a section of spoilers.
Syntax
{{spoiler|start}}
This marks the beginning of a spoiler. You can also just use {{spoiler}}
{{spoiler|end}}
This marks the end of a spoiler.