Difference between revisions of "Template:Spoiler"

From Valve Developer Community
Jump to: navigation, search
m (Added note about spoiler2)
 
(10 intermediate revisions by 5 users not shown)
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;">}}
<div class="notice metadata" id="spoiler">'''[[Wikipedia:Spoiler warning|Spoiler warning]]: ''Plot and/or ending details follow.'''''</div>
+
<noinclude>
----
+
</div>
 +
== Description ==
 +
This template begins and ends a section of spoilers.
 +
{{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>

Latest revision as of 16:59, 31 October 2011

Description

This template begins and ends a section of spoilers.

Note: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.