MediaWiki:Common.js

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

ajaxPages = ["Special:WikiActivity","Special:RecentChanges","Special:Log","Special:Contributions"]; ajaxRefresh = 20000; /* 20 seconds */ AjaxRCRefreshText = 'Auto-refresh'; AjaxRCRefreshHoverText = 'Automatically refresh the page';

window.UserTagsJS = { modules: {}, tags: { // group: { associated tag data } communityrep: { u:'Community Rep' }, custodian: { u:'Custodian' }, chatmoderator: { u:'Chat Moderator' }, montheditor: { u:'Editor of the Month' }, templates: { u:'Templates Guru' } } }; UserTagsJS.modules.custom = { //'username': ['communityrep'] // NOTE: order of list here does NOT matter }; UserTagsJS.modules.mwGroups = ['bureaucrat', 'sysop', 'rollback', 'custodian', 'chatmoderator', 'templates', 'montheditor']; UserTagsJS.modules.inactive = 30; // 30 days

// ***************************** // Beginning of Script importing // ***************************** importArticles({   type: "script",    articles: [        'w:c:dev:UserTags/code.js',        'w:c:dev:ExternalImageLoader/code.js',        'w:c:dev:AjaxRC/code.js'        'w:c:dev:QuickTools/advanced.js'          'w:c:dev:ShowHide/code.js'    ] });

/* Replaces with the name of the user browsing the page. Requires copying Template:USERNAME. */

$(function {   if (window.disableUsernameReplace || mw.config.get('wgUserName') === null) return;    $('span.insertusername').html(mw.config.get('wgUserName')); });

/* End of the replacement */

//************************************************ // Archive Old Blog Posts //************************************************ window.LockOldBlogs = { expiryDays: 30, expiryMessage: "This blog is considered archived because it hasn\'t been commented on in over  days, please don\'t bump this blog!" };