Board Thread:Support Requests - Designing Your Wiki/@comment-15851240-20130929005629

I think I found out how to add a alert to a page: What you do is (only if your an admin or bcrat) you add this to Mediawiki:Common.js ///////////////////////////////(Name of alert)///////////////////////////////////////// (Name of alert) = { question: '(Your question here.)', yes: '(Go to the page. For instance: Yes enter page)', no: '(Go away from page. For instance: No I don't want to enter page.)', is(name of alert): function { return (-1 !== wgCategories.indexOf('(Name of alert)') && Boolean($('.(name of alert)').length)); } }; importScriptPage('SpoilerAlert/code.js', 'dev'); to make the alert actually work write:   