MediaWiki:Common.js

/* Any JavaScript here will be loaded for all users on every page load. */

// Create the "dev" namespace if it doesn't exist already: window.dev = window.dev || {}; // Create the sub-namespace for this addon and set some options: window.dev.editSummaries = { css: '#stdSummaries { ... }',    select: 'MediaWiki:StandardEditSummary' }; window.UserTagsJS = { modules: {}, tags: { // group: { associated tag data } queen: { u:'Queen' } } };

UserTagsJS.modules.custom = { 'Ootwar': ['queen'], // Add Queen }; /* ********** Notimodule ********** */ var notimoduleTitle = window.notimoduleTitle || 'Bulletin'; var notimodulePagename = window.notimodulePagename || 'Template:Notimodule'; var request = new XMLHttpRequest; request.open("GET", '/wiki/'+ notimodulePagename +'?action=purge', true); request.send(null); $('#WikiaRail').prepend(' '+ notimoduleTitle +'  '); if ( wgUserGroups.indexOf("sysop") >= 0 ) { $('#notimodule h2').append(' (Edit) '); } $('#notimodule > div').load('/wiki/'+ notimodulePagename +'?action=render');