Thread:Applegirl/@comment-5945595-20140204145943/@comment-4839682-20140205002727

It is not a template, but a specific java script. It adds the popup to any page in a specific category, here, it's the "Upcoming Content" category.

To use it, you need to create this page on your Wiki. You can specify what the popup says there. Then, add the following text to your Common.js page, specifying what category the script will apply to.

SpoilerAlert = { isSpoiler: function { return -1 !== wgCategories.indexOf('CATEGORY NAME HERE'); } }; importScriptPage('MediaWiki:Common.js/SpoilerPop.js');