Template:Spoiler: Difference between revisions
Created page with "<includeonly>{{notice|b=This page or section contains spoilers.|1=Proceed with caution. Information contained herein may spoil plot points.|color=#FFCCCC}}</includeonly><noinclude> == Description == == Usage == {{spoiler}} == Articles Using Template == {{for|Special:WhatLinksHere/{{FULLPAGENAME}}|a full listing|here|pre=This list is limited to 100 pages}} {{Special:WhatLinksHere/{{FULLPAGENAME}}|namespace=0|limit=100}} Category:Notices" |
m Altered #if category assignment based on namespace where the notice is used. Altered examples to use {{spoiler}} template instead of generic notice template. |
||
| (52 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly>{{notice| | <includeonly>{{notice|id=spoiler-notice | ||
|color=#FFCCCC | |||
|header={{#if:{{{1|}}}{{{2|}}}{{{3|}}}{{{4|}}}{{{5|}}}{{{6|}}}{{{7|}}}{{{book|}}}{{{text|}}} | |||
|This page or section contains spoilers for the following:<br> | |||
|This page or section contains spoilers.}}<!-- | |||
-->{{#if:{{{text|}}}|{{{text}}}{{#if:{{{1|}}}{{{book|}}}|<br>}}}}<!-- | |||
-->{{#if:{{{1|}}}{{{book|}}}|''[[{{b|{{{1|{{{book}}}}}}}}|{{b|{{{1|{{{book}}}}}}|text=y}}]]''}}<!-- | |||
-->{{#if:{{{2|}}}|{{#if:{{{3|}}}|}}<br>''[[{{b|{{{2}}}}}|{{b|{{{2}}}|text=y}}]]''}}<!-- | |||
-->{{#if:{{{3|}}}|{{#if:{{{4|}}}||}}<br>''[[{{b|{{{3}}}}}|{{b|{{{3}}}|text=y}}]]''}}<!-- | |||
-->{{#if:{{{4|}}}|{{#if:{{{5|}}}||}}<br>''[[{{b|{{{4}}}}}|{{b|{{{4}}}|text=y}}]]''}}<!-- | |||
-->{{#if:{{{5|}}}|{{#if:{{{6|}}}||}}<br>''[[{{b|{{{5}}}}}|{{b|{{{5}}}|text=y}}]]''}}<!-- | |||
-->{{#if:{{{6|}}}|{{#if:{{{7|}}}||}}<br>''[[{{b|{{{6}}}}}|{{b|{{{6}}}|text=y}}]]''}}<!-- | |||
-->{{#if:{{{7|}}}|<br>''[[{{b|{{{7}}}}}|{{b|{{{7}}}|text=y}}]]''}}<!-- | |||
--> | |||
|text=Information contained herein may spoil plot points.<br>{{#if:{{{1|}}}{{{book|}}}| Proceed with caution if you have not read {{#if:{{{2|}}}|these books|this book}}.}} | |||
|align={{{align|left}}} | |||
|width={{{width|}}} | |||
|dismiss={{{dismiss|}}} | |||
}}<!-- | |||
-->{{#ifeq:{{NAMESPACE}}|{{ns:0}}|[[Category:Articles with Spoilers]]}}{{#ifeq:{{NAMESPACE}}|{{ns:100}}|[[Category:Articles with Spoilers]]}}<!-- | |||
-->{{#ifeq:{{NAMESPACE}}|{{ns:0}}|<!-- | |||
-->{{#if:{{{1|}}}{{{book|}}}|[[Category: Spoilers for {{b|{{{1|{{{book}}}}}}}}]]}}<!-- | |||
-->{{#if:{{{2|}}}|[[Category: Spoilers for {{b|{{{2}}}}}]]}}<!-- | |||
-->{{#if:{{{3|}}}|[[Category: Spoilers for {{b|{{{3}}}}}]]}}<!-- | |||
-->{{#if:{{{4|}}}|[[Category: Spoilers for {{b|{{{4}}}}}]]}}<!-- | |||
-->{{#if:{{{5|}}}|[[Category: Spoilers for {{b|{{{5}}}}}]]}}<!-- | |||
-->{{#if:{{{6|}}}|[[Category: Spoilers for {{b|{{{6}}}}}]]}}<!-- | |||
-->{{#if:{{{7|}}}|[[Category: Spoilers for {{b|{{{7}}}}}]]}}<!-- | |||
-->}}{{#ifeq:{{NAMESPACE}}|{{ns:100}}|<!-- | |||
-->{{#if:{{{1|}}}{{{book|}}}|[[Category: Spoilers for {{b|{{{1|{{{book}}}}}}}}]]}}<!-- | |||
-->{{#if:{{{2|}}}|[[Category: Spoilers for {{b|{{{2}}}}}]]}}<!-- | |||
-->{{#if:{{{3|}}}|[[Category: Spoilers for {{b|{{{3}}}}}]]}}<!-- | |||
-->{{#if:{{{4|}}}|[[Category: Spoilers for {{b|{{{4}}}}}]]}}<!-- | |||
-->{{#if:{{{5|}}}|[[Category: Spoilers for {{b|{{{5}}}}}]]}}<!-- | |||
-->{{#if:{{{6|}}}|[[Category: Spoilers for {{b|{{{6}}}}}]]}}<!-- | |||
-->{{#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 == | |||
To use, insert <code><nowiki>{{spoiler}}</nowiki></code> at the beginning of a page, after the infobox (if present), or beneath the relevant section heading. | |||
:'''Note:''' You can also pass <code>align=</code>, <code>width=</code>, and <code>dismiss=no</code> for more granular control of visual appearance. For more details on these parameters, see [[:Template:Notice]]. | |||
== | {| style="width: 100%; text-align: left; margin: auto;" class="wikitable" | ||
{{spoiler}} | |- | ||
! colspan="2" style="text-align: center;" | <span style="font-size: 115%;">Tag Only</span><br><div style="text-align: left;"><span style="font-weight: normal;">Passing only the tag will add the spoiler notice to that page or section.</span></div> | |||
|- | |||
! width=20%|You Type | |||
!You Get | |||
|- | |||
| style="text-align: center;" |<pre>{{spoiler}}</pre> | |||
|{{spoiler|width=83%|align=center}} | |||
|- | |||
! colspan="2" style="text-align: center;" | <span style="font-size: 115%;">Spoilers for a Specific Book</span><br><div style="text-align: left;"><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></div> | |||
|- | |||
! width=20%|You Type | |||
!You Get | |||
|- | |||
| style="text-align: center;" |<pre>{{spoiler|tbot}}</pre> | |||
|{{spoiler|tbot|width=83%|align=center}} | |||
|- | |||
! 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> | |||
|- | |||
! width=20%|You Type | |||
!You Get | |||
|- | |||
| style="text-align: center;" |<pre>{{spoiler|tbot|tq}}</pre> | |||
|{{spoiler|tbot|tq|width=83%|align=center}} | |||
|- | |||
! 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> | |||
|- | |||
! width=20%|You Type | |||
!You Get | |||
|- | |||
| style="text-align: left;" |<pre>{{spoiler | |||
|text=Stories from ''The St. Crispian's Gazette'' | |||
}}</pre> | |||
|{{spoiler|text=Stories from ''The St. Crispian's Gazette''|align=center|width=83%}} | |||
|} | |||
== Articles Using Template == | == Articles Using Template == | ||
Latest revision as of 02:44, 29 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=, anddismiss=nofor 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}}
|
|
| 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}}
|
|
| 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}}
|
|
| 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''
}}
|
|
Articles Using Template
- Agnes (transclusion) (← links | edit)
- Parian (transclusion) (← links | edit)
- Matilde (transclusion) (← links | edit)
- Maxwell (transclusion) (← links | edit)
- Nigel Hawkes (transclusion) (← links | edit)
- Madame Tasset (transclusion) (← links | edit)
- Saffronia March (transclusion) (← links | edit)
- Jack Hollingstell (transclusion) (← links | edit)
- Mr. Penury (transclusion) (← links | edit)
- The Tenant (transclusion) (← links | edit)
- The St. Crispian's Gazette (transclusion) (← links | edit)
- Calendar: The Unselected Journals of Emma M. Lion (transclusion) (← links | edit)
- The Personal Library of Emma M. Lion (transclusion) (← links | edit)
- Declan Lion (transclusion) (← links | edit)
- Emma's Mother (transclusion) (← links | edit)