MediaWiki:Common.js

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

/* Template:USERNAME */ var username = wgUserName; if (username) {$('.InsertUsername').text(username);}

/***************************/ /* Configuration Settings **/ /***************************/

/* ChatReload */ window.chatReloadTime = 60000;

/* HighlightUsers */ highlight = { selectAll: true, bot: '#A0D', staff: '#027', vstf: '#027' };

/* QuickDelete */ window.category = 'Candidates for deletion';

/* StandardEditSummary */ window.dev = window.dev || {}; window.dev.editSummaries = { css: '#stdSummaries {width: 264px;}', select: [ '(click to browse)', '1. General editing', [ 'Updated information', 'Corrected spelling/grammar', 'Reorganised content' ],        '2. Radical editing', [ 'Removed content', 'Revised article', 'Reverted to older version' ],        '3. Maintenance', [ 'Updated category', 'Added article status template', 'Removed/fixed link(s)', 'Removed/replaced file(s)', 'Removed/corrected template(s)' ]   ] };

/* UserTags */ window.UserTagsJS = { modules: {}, tags: { coder: {u:'Coder'}, sysop: {u:'Administrator'}, threadmoderator: {u:'Moderator'}, time: {u:'time after time'}, usflag: {u:'usflag'}, ukflag: {u:'ukflag'}, auflag: {u:'auflag'} } };

UserTagsJS.modules.custom = { 'Hackey5': ['coder'], '3primetime3': ['time'] }; UserTagsJS.modules.inactive = 60; UserTagsJS.modules.metafilter = {'sysop': ['bureaucrat']}; UserTagsJS.modules.mwGroups = ['bureaucrat']; UserTagsJS.modules.newuser = { days: 7, edits: 10 };

/** Flags Project **/ UserTagsJS.modules.custom = { 'Nusdan': ['ukflag'], 'AXBOIvsWIKIA': ['ukflag'], 'Sliceanddice23': ['usflag'], 'GMD_Kaz': ['usflag'], 'ZOptic': ['usflag'], '3primetime3': ['usflag'], 'Hackey5': ['auflag'], 'Scopio_007': ['auflag'], 'Theninja000': ['auflag'] };

/***************************/ /* Dev Wiki Script Imports */ /***************************/

importArticles({   type: 'script',    articles: [        'u:dev:CacheCheck/code.js',        'u:dev:ChatReload/code.js',        'u:dev:DisplayClock/code.js',        'u:dev:EditBoardDescription/code.js',        'u:dev:ExternalImageLoader/code.js',        'u:dev:HighlightUsers/code.js',        'u:dev:PurgeButton/code.js',        'u:dev:QuickDelete/code.js',        'u:dev:RevealAnonIP/code.js',        'u:dev:Standard_Edit_Summary/code.js',        'u:dev:TopEditors/code.js',        'u:dev:UserRightsRecord/code.js',        'u:dev:UserTags/code.js',        'u:dev:WallGreetingButton/code.js'    ] });