Template:Spoiler/doc

Description

{{Spoiler}} is used to hide spoilers from books 3+ in a wiki page. It can be added in Visual Editor or Source Editor as a template. Using templates rather than copy/paste blocks of text allows us to make site-wide changes to wording, page design, and more.

This documentation page includes instructions on how to use the spoiler filter. For a better understanding of when and why to use the filter, see our Spoiler Policy.

Example

SPOILERS FOR BOOK 4
Matt Di works with a Swashbuckler and fights some llamas. Example gains an Enchanted Shirt from an Adventurer Box.

Visual Editor

In Visual Editor, either type {{ or select "Insert" -> "Template" from the header bar to open the template search. Search for "Spoiler" to open the template editor. In the book section, enter which books are spoiled in the paragraph (e.g. 3, 4, 5).

In the "spoiler" box, write the spoiler! This requires some basic wikitext:

  • Paragraphs must start with <p> and end with </p> to format correctly.
  • Link to other wiki pages by typing [[the page name]]. Capitalization matters.
    • Link to another page but use a different name by typing [[the page name | Name You Want to Use]].
  • Mark bold text using '''text'''.
  • Mark italic text using ''text''.

When done, click "Insert."

Syntax

{{Spoiler
| book =
| spoiler =
}}

Or:

{{Spoiler | book = | spoiler = }}

Pro Tip

If adding spoilers for multiple books (as in Lucia Mar's page), you can reduce white space on the page by starting the next spoiler filter immediately after the previous spoiler closes. This looks like:

SPOILERS FOR BOOK 4
spoilers for book 4 abound!
SPOILERS FOR BOOK 5
spoilers for book 5
{{Spoiler
| book = 4
| spoiler = spoilers for book 4 abound!
}}{{Spoiler
| book = 5
| spoiler = spoilers for book 5
}}