Template documentation follows |
---|
The template above may sometimes be partially or fully invisible. |
Visit Template:Spoiler/doc to edit this documentation. (How does this work?) |
Usage
{{Spoiler|product's article title|formatted name|time=}}
- Insert template at the top of the page, immediately below the {{Top}} and disambiguation templates, if they are on the page. (see the Layout Guide)
- Replace "product's article title" with the title of the article for the product containing the spoiler and "formatted name" with the formatted name of the product.
- For multiple products, more pairs of the product's article title|formatted name parameters may be added to the end of the template.
- If the formatted name is omitted, the first parameter will be used in its place. If both parameters are omitted, the template will display the text shown at the top of this page.
- If the product is a short work that requires quotes around it instead of italics, use
quote1=1
for the first short-work product,quote2=1
for the second, and so on as needed.
- The spoiler's expiry date (see the spoiler policy) must be added to the time field using any standard date format (e.g. YYYY-MM-DD). Then, on that day, the article will be listed on Category:Articles with expired spoiler notices to make removing/updating expired spoiler templates more convenient for editors. Also, between 11:00 UTC and 11:59 UTC that day, JocastaBot will automatically either remove the entire template or, where applicable, update it according to the sources listed there.
- The code
thr=1
can be used for a The High Republic–themed flair.
Examples
{{Spoiler|Life Day Treasury|''Life Day Treasury''}}
produces the message: "Warning! This page contains spoilers from Life Day Treasury. Caution is advised."{{Spoiler|Bounty Lost|quote1=1}}
produces the message: "Warning! This page contains spoilers from "Bounty Lost." Caution is advised."- In both instances, the article will be listed in Category:Articles with spoilers.
{{Spoiler|Bounty Lost|quote1=1|time=2021-07-26}}
produces the message: "Warning! This page contains spoilers from "Bounty Lost." Caution is advised."- The article will be listed in Category:Articles with spoilers, and on the specified date, the article will be listed in Category:Articles with expired spoiler notices. The template should then be removed.
{{Spoiler|Star Wars (2020) 14|''Star Wars'' 14|Darth Vader (2020) 13|''Darth Vader'' 13|Bounty Lost|Bounty Lost|quote3=1|time=2021-07-17}}
produces the message: "Warning! This page contains spoilers from Star Wars 14, Darth Vader 13, and "Bounty Lost." Caution is advised."- The article will be listed in Category:Articles with spoilers, and on the specified date, the article will be listed in Category:Articles with expired spoiler notices. |Star Wars (2020) 14|Star Wars 14 should then be removed from the template, and 2021-07-17 should be changed to one month after the release of Darth Vader 13, i.e. 2021-07-24.