Difference between revisions of "Template:Spoilers"

From The Coppermind
Jump to navigation Jump to search
m (Checking for usage of {{{1}}})
(Allow up to seven books (same as multispoilers))
Line 1: Line 1:
 
{{notice|style=background-color: #FAA;|id=spoilers
 
{{notice|style=background-color: #FAA;|id=spoilers
|b=This page or section contains spoilers{{{1|}}}{{#if:{{{book|}}}| for ''[[{{b|{{{book}}}|}}|{{b|{{{book}}}|text=y}}]]''}}!
+
|b=This page or section contains spoilers<!--
  +
-->{{#if:{{{1|}}}{{{book|}}}|&nbsp;for ''[[{{b|{{{1|{{{book}}}}}}}}|{{b|{{{1|{{{book}}}}}}|text=y}}]]''}}<!--
|This information has the ability to potentially ruin elements of the plot for the reader. Proceed with caution if you have not read this book.
 
  +
-->{{#if:{{{2|}}}|{{#if:{{{3|}}}|,|&nbsp;and}} ''[[{{b|{{{2}}}}}|{{b|{{{2}}}|text=y}}]]''}}<!--
  +
-->{{#if:{{{3|}}}|,{{#if:{{{4|}}}||&nbsp;and}} ''[[{{b|{{{3}}}}}|{{b|{{{3}}}|text=y}}]]''}}<!--
  +
-->{{#if:{{{4|}}}|,{{#if:{{{5|}}}||&nbsp;and}} ''[[{{b|{{{4}}}}}|{{b|{{{4}}}|text=y}}]]''}}<!--
  +
-->{{#if:{{{5|}}}|,{{#if:{{{6|}}}||&nbsp;and}} ''[[{{b|{{{5}}}}}|{{b|{{{5}}}|text=y}}]]''}}<!--
  +
-->{{#if:{{{6|}}}|,{{#if:{{{7|}}}||&nbsp;and}} ''[[{{b|{{{6}}}}}|{{b|{{{6}}}|text=y}}]]''}}<!--
  +
-->{{#if:{{{7|}}}|, and ''[[{{b|{{{7}}}}}|{{b|{{{7}}}|text=y}}]]''}}<!--
 
-->!
 
|This information has the ability to potentially ruin elements of the plot for the reader.{{#if:{{{1|}}}{{{book|}}}|&nbsp;Proceed with caution if you have not read {{#if:{{{2|}}}|these books|this book}}.}}
 
}}<includeonly><!--
 
}}<includeonly><!--
   
 
-->[[Category: Articles with spoilers]]<!--
 
-->[[Category: Articles with spoilers]]<!--
   
-->{{#if:{{{book|}}}|<!--
+
-->{{#if:{{{1|}}}{{{book|}}}|[[Category: Spoilers for {{b|{{{1|{{{book}}}}}}}}]]}}<!--
-->[[Category: Spoilers for {{b|{{{book}}}|}}]]<!--
+
-->{{#if:{{{2|}}}|[[Category: Spoilers for {{b|{{{2}}}}}]]}}<!--
  +
-->{{#if:{{{3|}}}|[[Category: Spoilers for {{b|{{{3}}}}}]]}}<!--
-->}}<!--
 
  +
-->{{#if:{{{4|}}}|[[Category: Spoilers for {{b|{{{4}}}}}]]}}<!--
 
-->{{#if:{{{1|}}}|[[category:spoiler template with unnamed parameter]]}}<!--
+
-->{{#if:{{{5|}}}|[[Category: Spoilers for {{b|{{{5}}}}}]]}}<!--
  +
-->{{#if:{{{6|}}}|[[Category: Spoilers for {{b|{{{6}}}}}]]}}<!--
  +
-->{{#if:{{{7|}}}|[[Category: Spoilers for {{b|{{{7}}}}}]]}}<!--
   
 
--></includeonly><noinclude>
 
--></includeonly><noinclude>
   
This notice should be used on pages that contain information gained from a recently released book. This notice can be removed ~6 months after the publication date. It inserts the page into [[:Category: Articles with spoilers]]. For example, to indicate that a page contains spoilers for Rhythm of War, use <code><nowiki>{{spoiler|book=sa4}}</nowiki></code>. See [[Template:B]] for the relevant book code for other books. For articles with spoilers from multiple recently released books, use {{t|multispoilers}}.
+
This notice should be used on pages that contain information gained from a recently released book. See [[Coppermind:Spoilers]] for details on how long it should be left up. It adds the page into [[:Category: Articles with spoilers]]. To indicate which book the article has spoilers for, add the book codes from [[Template:B]] as parameters. For example, to indicate that a page contains spoilers for ''[[Dawnshard (novella)|Dawnshard]]'' and for ''[[Rhythm of War]]'', use {{t|spoilers|sa3.5|sa4}}. Doing so will also add the page to categories the track spoilers for individual books.
  +
  +
'''Note:''' {{t|spoilers|2=book=''book code''}} is still valid, but will be suppressed unless you specify <code>2=</code>, <code>3=</code>, etc. for subsequent books.
   
 
[[Category: Notices]]
 
[[Category: Notices]]

Revision as of 19:38, 27 July 2020

This page or section contains spoilers!
This information has the ability to potentially ruin elements of the plot for the reader.

This notice should be used on pages that contain information gained from a recently released book. See Coppermind:Spoilers for details on how long it should be left up. It adds the page into Category: Articles with spoilers. To indicate which book the article has spoilers for, add the book codes from Template:B as parameters. For example, to indicate that a page contains spoilers for Dawnshard and for Rhythm of War, use {{spoilers|sa3.5|sa4}}. Doing so will also add the page to categories the track spoilers for individual books.

Note: {{spoilers|book=book code}} is still valid, but will be suppressed unless you specify 2=, 3=, etc. for subsequent books.

Articles using Template