Difference between revisions of "Template:Spoilers"
(Allow up to seven books (same as multispoilers)) |
m (Add non-book option here as well) |
||
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<!-- |
|b=This page or section contains spoilers<!-- |
||
+ | -->{{#if:{{{text|}}}| for {{{text}}}{{#if:{{{1|}}}{{{book|}}}| and}}}}<!-- |
||
-->{{#if:{{{1|}}}{{{book|}}}| for ''[[{{b|{{{1|{{{book}}}}}}}}|{{b|{{{1|{{{book}}}}}}|text=y}}]]''}}<!-- |
-->{{#if:{{{1|}}}{{{book|}}}| for ''[[{{b|{{{1|{{{book}}}}}}}}|{{b|{{{1|{{{book}}}}}}|text=y}}]]''}}<!-- |
||
-->{{#if:{{{2|}}}|{{#if:{{{3|}}}|,| and}} ''[[{{b|{{{2}}}}}|{{b|{{{2}}}|text=y}}]]''}}<!-- |
-->{{#if:{{{2|}}}|{{#if:{{{3|}}}|,| and}} ''[[{{b|{{{2}}}}}|{{b|{{{2}}}|text=y}}]]''}}<!-- |
||
Line 24: | Line 25: | ||
--></includeonly><noinclude> |
--></includeonly><noinclude> |
||
− | 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. |
+ | 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(s) 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. |
+ | |||
+ | To add a note that a page needs to be updated for something other than a specific book, use the <code>text</code> parameter; this may be used in combination with a list of books. To add a note that will only be seen when someone edits the page, use the <code>notes</code> parameter.<!--This is not a real parameter, but because it doesn't exist in the template, it shouldn't get processed, but the note will still be visible on the edit screen--> |
||
'''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. |
'''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. |
Latest revision as of 02:18, 28 July 2020
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(s) 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.
To add a note that a page needs to be updated for something other than a specific book, use the text
parameter; this may be used in combination with a list of books. To add a note that will only be seen when someone edits the page, use the notes
parameter.
Note: {{spoilers|book=book code}}
is still valid, but will be suppressed unless you specify 2=
, 3=
, etc. for subsequent books.