Template:Spoilers: Difference between revisions

Jump to navigation Jump to search
No edit summary
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly>{| class="container" style="padding:0.25em 0.75em 0.25em 0.35em; margin:{{#if:{{{left|}}}|0|auto}};"
<includeonly>{| class="container" style="padding:0.25em 0.75em 0.25em 0.35em; margin:{{#if:{{{section|}}}|0|auto}};"
|rowspan=2 style="padding-right:0.75em; width:55px;"|[[File:Spoiler Icon.png|x55px]]
|rowspan=2 style="padding-right:0.75em; width:55px;"|[[File:Spoiler Icon.png|x55px]]
|style="vertical-align:bottom;"|'''This article contains major spoilers.'''
|style="vertical-align:bottom;"|'''This {{#if:{{{section|}}}|section|article}} contains major spoilers.'''
|-
|-
|style="vertical-align:top;"|<small><div style="padding:4px;">The contents of this {{#if:{{{section|}}}|section|article}} cover major plot and/or character spoilers. Reader discretion is advised.</div></small>
|style="vertical-align:top;"|<small><div style="padding:4px;">The contents of this {{#if:{{{section|}}}|section|article}} cover major plot and/or character spoilers. Reader discretion is advised.</div></small>

Latest revision as of 02:03, 13 May 2024

Purpose

Notice template used to inform readers that the contents of an article contains major plot and/or character spoilers. This template should be added to the top of a page if its contents are entirely spoilery and would be unavoidable.

Sections covering spoilers should be marked by and enclosed using the Startspoiler and Endspoiler templates instead. However, for sections that merely require a simple notice, this template's header can be changed to signify a section by adding a value to its section parameter.

Usage

Parameter Description
section Must be given a value (such as "1" or "y") to display. Changes header to denote a section.

Code

{{Spoilers}}
{{Spoilers|section=}}

Example

{{Spoilers}}
This article contains major spoilers.
The contents of this article cover major plot and/or character spoilers. Reader discretion is advised.