Template:Spoiler: Difference between revisions

From The Reed and Rite
mNo edit summary
Line 23: Line 23:
-->{{#if:{{{7|}}}|[[Category: Spoilers for {{b|{{{7}}}}}]]}}</includeonly><noinclude>
-->{{#if:{{{7|}}}|[[Category: Spoilers for {{b|{{{7}}}}}]]}}</includeonly><noinclude>
== Description ==
== 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 ==
== Usage ==
Line 30: Line 30:
{| style="width: 100%; text-align: left; margin: auto;" class="wikitable"
{| style="width: 100%; text-align: left; margin: auto;" class="wikitable"
|-
|-
! colspan="2" style="text-align: center;" | <span style="font-size: 115%;">Tag Only</span><br><span style="font-weight: normal;">[Brief Explanation here]</span>
! colspan="2" style="text-align: center;" | <span style="font-size: 115%;">Tag Only</span><br><span style="font-weight: normal;">Passing only the tag will add the spoiler notice to that page or section.</span>
|-
|-
! width=20%|You Type
! width=20%|You Type
Line 38: Line 38:
| style="background-color: white;" |{{notice|width=83%|color=#FFCCCC|b=This page or section contains spoilers|1=Information contained herein may spoil plot points.}}
| style="background-color: white;" |{{notice|width=83%|color=#FFCCCC|b=This page or section contains spoilers|1=Information contained herein may spoil plot points.}}
|-
|-
! colspan="2" style="text-align: center;" | <span style="font-size: 115%;">One Unnamed Parameter</span><br><span style="font-weight: normal;">[Brief Explanation here]</span>
! colspan="2" style="text-align: center;" | <span style="font-size: 115%;">Spoilers Warning for One Book</span><br><span style="font-weight: normal;">If you wish to specify what book the spoiler warning is regarding, simply pass that book's abbreviation from [[:Template:B]].</span>
|-
|-
! width=20%|You Type
! width=20%|You Type
Line 46: Line 46:
| style="background-color: white;" |{{notice|width=83%|color=#FFCCCC|b=This page or section contains spoilers for ''[[The Beast of Ten]]''|1=Information contained herein may spoil plot points.<br> Proceed with caution if you have not read this book.}}
| style="background-color: white;" |{{notice|width=83%|color=#FFCCCC|b=This page or section contains spoilers for ''[[The Beast of Ten]]''|1=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%;">Two+ Unnamed Parameters</span><br><span style="font-weight: normal;">[Brief Explanation here]</span>
! colspan="2" style="text-align: center;" | <span style="font-size: 115%;">Spoilers Warning for Two or More Books</span><br><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>This template is limited to a maximum of 7 book abbreviations.</span>
|-
|-
! width=20%|You Type
! width=20%|You Type

Revision as of 01:35, 23 April 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 the a page, after the infobox (if present), or beneath the relevant section heading.

Tag Only
Passing only the tag will add the spoiler notice to that page or section.
You Type You Get
{{spoiler}}
×
{{{text}}}
Spoilers Warning for One 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}}
×
{{{text}}}
Spoilers Warning 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.
This template is limited to a maximum of 7 book abbreviations.
You Type You Get
{{spoiler|tbot|tq}}
×
{{{text}}}

Articles Using Template