MediaWiki:Common.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')); });

// ********************************************** // User Tags - http://dev.wikia.com/wiki/UserTags // **********************************************

window.UserTagsJS = { modules: {}, tags: { bureaucrat: {u:'Bureaucrat', order: -1/0 }, bot: { u:'Robot', order: 0 }, sysop: { u:'Administrator', order: 1 }, 'content-moderator': { u:'Junior Administrator', order: 2 }, threadmoderator: { order: 3 }, rollback: { u:'Rollback', order: 4 }, chatmoderator: { u:'Chat Moderator', order: 5 }, montheditor: { u:'Editor of the Month' }, yeareditor: { u:'Editor of the Year' }, newuser: { u:'New User'}, inactive: { u:'Hiatus'}, founder: { u:'Founder'}, blocked: { u:'Canceled'} } }; UserTagsJS.modules.custom = { 'User1': ['montheditor'], 'User2': ['yeareditor'], 'Bobnekaro': ['bureaucrat', 'sysop'], 'Baron Kobe': ['founder', 'bot'] }; UserTagsJS.modules.mwGroups = [ 'bureaucrat', 'bot', 'sysop', 'content-moderator', 'threadmoderator', 'rollback', 'chatmoderator' ]; UserTagsJS.modules.autoconfirmed = false; UserTagsJS.modules.newuser = { days: 4, edits: 10, namespaces: 0 }; UserTagsJS.modules.inactive = { days: 30, namespaces: [0] }; // ***************************** // Beginning of Script importing // ***************************** importArticles({   type: 'script',    articles: [        'u:dev:UserTags/code.js'    ] });/* Any JavaScript here will be loaded for all users on every page load. */