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:
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.