Project: Wiki spoilers

Posted on January 18, 2011

I’ve been working on a new project, and now I’m revealing it to the world. It doesn’t quite have a name yet, so for now I’m just calling it Spoiler. It’s an extension to the MediaWiki software that allows for the creation of intelligent spoiler tags. The extension basically allows administrators to create discrete levels and add spoilers specific to that level.

So, for example, you could impose the following structure on your MediaWiki install:

  • The Fellowship of the Ring
    • A Long-expected Party
    • The Shadow of the Past
    • Three is Company
  • The Two Towers
    • The Departure of Boromir
    • The Riders of Rohan
    • The Uruk-hai

Editors could then edit the page and mark sections of text as being a spoiler for a certain section; for example:

<spoiler l=”departureofboromir”>Something happens!</spoiler>

…would be written for some spoiler that happens in the first chapter of The Two Towers.

Meanwhile, regular users of the wiki would be able to set their own spoiler levels, and any spoilers up to the point they’re at will be revealed, while those ahead of them would be hidden. So If I’ve only read as far as the last chapter of Fellowship of the Ring, any spoilers in The Two Towers and beyond would not be visible.

The extension works in its basic form, but there’s still plenty of work to be done on it. Still, I thought I’d at least reveal what I’m working on. You can view the entire extension at the repository I have for it.

Leave a Reply

Your email address will not be published. Required fields are marked *