Template:Spoiler: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Documented and categorized.)
m (Added note about spoiler2)
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<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 for spoilers. The end of this section should be closed with the [[Template:Endspoiler|Endspoiler]] template.
This template begins and ends a section of spoilers.
[[Category:Templates]]
{{note|If most of the page contains spoilers, consider using the {{[[Template:Spoiler2|spoiler2]]}} template instead.}}
 
== 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>
</noinclude>

Latest revision as of 09:59, 31 October 2011

Description

This template begins and ends a section of spoilers.

Note.pngNote:If most of the page contains spoilers, consider using the {{spoiler2}} template instead.

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.