Knowledge Base: Spoiler Warnings

When you’re writing a post, for example a book or movie review, and you don’t want to give away plot or ending spoilers to those who haven’t yet encountered the story, you can wrap the spoilers in the [spoiler] and [/spoiler] shortcodes.  These will cause the text they enclose to be hidden unless the user explicitly displays it by clicking on the title of the spoiler box.  You can specify any title you wish with the “title=” attribute in the [spoiler] shortcode.

For example, if you write in your post:

[spoiler title="Show plot spoilers"]
Darph Nader was Fluke’s father.
[/spoiler]

the post will appear as follows:

You can use the [spoiler] shortcode anywhere you wish to hide some text from readers, for example punch lines of jokes and answers to puzzles.

This only works in main posts and main post comments, not in group posts and comments.

3+

Users who have liked this post:

  • avatar
  • avatar

Author: John Walker

Founder of Ratburger.org, Autodesk, Inc., and Marinchip Systems. Author of The Hacker's Diet. Creator of www.fourmilab.ch.

2 thoughts on “Knowledge Base: Spoiler Warnings”

  1. BTW, if it wasn’t for Darph Nader, Kal Door would have been Emperor. Fluke saved the day with Chadbaka. 😉

    2+

    Users who have liked this comment:

    • avatar

Leave a Reply