Template:Spoiler: Difference between revisions

From The Reed and Rite
m Removed the line break before the sentence "Proceed with caution if…". Updated examples to reflect this change.
m Reintroduced the line break removed in the last edit. The line break makes the notice look cleaner and less cluttered.
Line 12: Line 12:
-->{{#if:{{{7|}}}|<br>''[[{{b|{{{7}}}}}|{{b|{{{7}}}|text=y}}]]''}}<!--
-->{{#if:{{{7|}}}|<br>''[[{{b|{{{7}}}}}|{{b|{{{7}}}|text=y}}]]''}}<!--
-->
-->
|text=Information contained herein may spoil plot points.{{#if:{{{1|}}}{{{book|}}}|&nbsp;Proceed with caution if you have not read {{#if:{{{2|}}}|these books|this book}}.}}
|text=Information contained herein may spoil plot points.<br>{{#if:{{{1|}}}{{{book|}}}|&nbsp;Proceed with caution if you have not read {{#if:{{{2|}}}|these books|this book}}.}}
|align={{{align|left}}}
|align={{{align|left}}}
|width={{{width|}}}
|width={{{width|}}}
Line 50: Line 50:
|-
|-
| style="text-align: center; background-color: white;" |<pre>{{spoiler|tbot}}</pre>
| style="text-align: center; background-color: white;" |<pre>{{spoiler|tbot}}</pre>
| style="background-color: white;" |{{notice|width=83%|color=#FFCCCC|header=This page or section contains spoilers for the following:<br>''[[The Beast of Ten]]''|text=Information contained herein may spoil plot points. Proceed with caution if you have not read this book.}}
| style="background-color: white;" |{{notice|width=83%|color=#FFCCCC|header=This page or section contains spoilers for the following:<br>''[[The Beast of Ten]]''|text=Information contained herein may spoil plot points.<br>Proceed with caution if you have not read this book.}}
|-
|-
! colspan="2" style="text-align: center;" | <span style="font-size: 115%;">Spoilers for Two or More Books</span><br><div style="text-align: left;"><span style="font-weight: normal;">If you wish warn about spoilers from two or more books, simply pass a parameter for each book using that book's abbreviation from [[:Template:B]].<br><br><span style="font-size: 90%;">'''Note:''' This template is limited to a maximum of seven book abbreviations.</span></span></div>
! colspan="2" style="text-align: center;" | <span style="font-size: 115%;">Spoilers for Two or More Books</span><br><div style="text-align: left;"><span style="font-weight: normal;">If you wish warn about spoilers from two or more books, simply pass a parameter for each book using that book's abbreviation from [[:Template:B]].<br><br><span style="font-size: 90%;">'''Note:''' This template is limited to a maximum of seven book abbreviations.</span></span></div>
Line 58: Line 58:
|-
|-
| style="text-align: center; background-color: white;" |<pre>{{spoiler|tbot|tq}}</pre>
| style="text-align: center; background-color: white;" |<pre>{{spoiler|tbot|tq}}</pre>
| style="background-color: white;" |{{notice|width=83%|color=#FFCCCC|header=This page or section contains spoilers for the following:<br> ''[[The Beast of Ten]]''<br>''[[The Q]]''|text=Information contained herein may spoil plot points. Proceed with caution if you have not read these books.}}
| style="background-color: white;" |{{notice|width=83%|color=#FFCCCC|header=This page or section contains spoilers for the following:<br> ''[[The Beast of Ten]]''<br>''[[The Q]]''|text=Information contained herein may spoil plot points.<br>Proceed with caution if you have not read these books.}}
|-
|-
! colspan="2" style="text-align: center;" | <span style="font-size: 115%;">Spoilers for Non-Book Content</span><br><div style="text-align: left;"><span style="font-weight: normal;">If you wish warn about spoilers from content that is not book related—such as stories from ''The St. Crispian's Gazette''—or if you wish to add additional text to the notice, pass <code>text=</code>.</span></div>
! colspan="2" style="text-align: center;" | <span style="font-size: 115%;">Spoilers for Non-Book Content</span><br><div style="text-align: left;"><span style="font-weight: normal;">If you wish warn about spoilers from content that is not book related—such as stories from ''The St. Crispian's Gazette''—or if you wish to add additional text to the notice, pass <code>text=</code>.</span></div>

Revision as of 23:03, 22 May 2025

Description

This template should be used to indicate a page or section may contain spoilers. Using it automatically adds the page to Category:Articles with Spoilers.

Usage

To use, insert {{spoiler}} at the beginning of a page, after the infobox (if present), or beneath the relevant section heading.

Note: You can also pass align=, width=, and dismiss=no for more granular control of visual appearance. For more details on these parameters, see Template:Notice.
Tag Only
Passing only the tag will add the spoiler notice to that page or section.
You Type You Get
{{spoiler}}
×
This page or section contains spoilers.
Information contained herein may spoil plot points.
Spoilers for a Specific Book
If you wish to specify what book the spoiler warning is regarding, simply pass that book's abbreviation from Template:B.
You Type You Get
{{spoiler|tbot}}
×
This page or section contains spoilers for the following:
The Beast of Ten
Information contained herein may spoil plot points.
Proceed with caution if you have not read this book.
Spoilers for Two or More Books
If you wish warn about spoilers from two or more books, simply pass a parameter for each book using that book's abbreviation from Template:B.

Note: This template is limited to a maximum of seven book abbreviations.
You Type You Get
{{spoiler|tbot|tq}}
×
This page or section contains spoilers for the following:
The Beast of Ten
The Q
Information contained herein may spoil plot points.
Proceed with caution if you have not read these books.
Spoilers for Non-Book Content
If you wish warn about spoilers from content that is not book related—such as stories from The St. Crispian's Gazette—or if you wish to add additional text to the notice, pass text=.
You Type You Get
{{spoiler
|text=Stories from ''The St. Crispian's Gazette''
}}
×
This page or section contains spoilers for the following:
Stories from The St. Crispian's Gazette
Information contained herein may spoil plot points.

Articles Using Template