Difference between revisions of "Template:Multispoilers"

From The Coppermind
Jump to navigation Jump to search
m (Implement text parameter)
m (Especially with the Time Machine now, I think we want the spoiler notices on old versions of pages that are using this template to still generate, but the syntax for Template:Spoilers is the same as it was for this, so I think redirecting this instead of deleting it makes sense)
Tag: New redirect
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
  +
#REDIRECT [[Template:Spoilers]]
{{notice|style=background-color: #FAA;
 
|b=This page or section contains spoilers for the following books!
 
|This information has the ability to potentially ruin elements of the plot for the reader. Proceed with caution if you have not read:
 
''[[{{<noinclude>t|</noinclude>b|{{{1}}}|text=y|}}]]'', ''[[{{<noinclude>t|</noinclude>b|{{{2}}}|text=y|}}]]''<!--
 
-->{{#if:{{{3|}}}|, ''[[{{b|{{{3}}}|text=y|}}]]''}}<!--
 
-->{{#if:{{{4|}}}|, ''[[{{b|{{{4}}}|text=y|}}]]''}}<!--
 
-->{{#if:{{{5|}}}|, ''[[{{b|{{{5}}}|text=y|}}]]''}}<!--
 
-->{{#if:{{{6|}}}|, ''[[{{b|{{{6}}}|text=y|}}]]''}}<!--
 
-->{{#if:{{{7|}}}|, ''[[{{b|{{{7}}}|text=y|}}]]''}}
 
}}<includeonly><!--
 
 
-->[[Category: Articles with spoilers]]<!--
 
 
-->[[Category: {{b|{{{1}}}|}}]]<!--
 
-->[[Category: Spoilers for {{b|{{{1}}}|}}]]<!--
 
-->[[Category: {{b|{{{2}}}|}}]]<!--
 
-->[[Category: Spoilers for {{b|{{{2}}}|}}]]<!--
 
 
-->{{#if:{{{3|}}}|<!--
 
-->[[Category: {{b|{{{3}}}|}}]]<!--
 
-->[[Category: Spoilers for {{b|{{{3}}}|}}]]<!--
 
-->}}<!--
 
 
-->{{#if:{{{4|}}}|<!--
 
-->[[Category: {{b|{{{4}}}|}}]]<!--
 
-->[[Category: Spoilers for {{b|{{{4}}}|}}]]<!--
 
-->}}<!--
 
 
-->{{#if:{{{5|}}}|<!--
 
-->[[Category: {{b|{{{5}}}|}}]]<!--
 
-->[[Category: Spoilers for {{b|{{{5}}}|}}]]<!--
 
-->}}<!--
 
 
-->{{#if:{{{6|}}}|<!--
 
-->[[Category: {{b|{{{6}}}|}}]]<!--
 
-->[[Category: Spoilers for {{b|{{{6}}}|}}]]<!--
 
-->}}<!--
 
 
-->{{#if:{{{7|}}}|<!--
 
-->[[Category: {{b|{{{7}}}|}}]]<!--
 
-->[[Category: Spoilers for {{b|{{{7}}}|}}]]<!--
 
-->}}<!--
 
 
--></includeonly><noinclude>
 
 
This notice should be used on pages that contain information gained from multiple recently released books. It can be included by adding the text <code><nowiki>{{multispoilers|book1|book2}}</nowiki></code> to the top of the page. This notice can be removed ~6 months after the publication date. It adds the red notice seen above and automatically inserts the page into [[:Category: Articles with spoilers]] and the corresponding book spoiler articles.
 
 
== Parameters ==
 
*{{{book1}}} - the first book that the page contains spoilers for. The title should be entered in shorthand form, which will be converted to the full title by {{t|B}}. See that article for a list of all shorthand names.
 
*{{{book2}}} - the second book that the page contains spoilers for, formatted the same as {{{book1}}}.
 
 
The template can optionally include up to seven different books, all formatted the same way, but it must include at least two.
 
 
== Examples ==
 
If I wanted to note that an article contained spoilers for all the Mistborn books individually (even though those came out more than 6 months ago), I would use the following code: <code><nowiki>{{multispoilers|mb1|mb2|mb3|mb4|mb5|mb6|msh}}</nowiki></code>.
 
 
[[Category: Notices]]
 
 
== 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}}
 

Latest revision as of 15:22, 28 December 2020

Redirect to: