MediaWiki:Common.js

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

/* Categories (for custom background) */ mw.loader.using('mediawiki.util').then(function {   mw.config.get('wgCategories').forEach(function(cat) { $('body').addClass('cat-' + mw.util.escapeIdForAttribute(cat)); }); });

/* Message templates */ window.DiscussionTemplates = { templates: { 'Off-topic': { name: 'Template:Off-topic', title: 'Your posts' },       'Off-topic/en': { name: 'Template:Off-topic/en', title: 'Your posts' },       'Off-topic/thread': { name: 'Template:Off-topic/thread', title: 'Your posts' },   },    allowedGroups: ['sysop', 'threadmoderator', 'content-moderator'] };

/* To replace the now dead "welcome bot" */ window.AutoCreateUserPagesConfig = { content: { 2: '',       3: false },   summary: 'Script: Creating user profile' };