MediaWiki:Common.js

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

/** js Articles **/

/* User tags */

window.UserTagsJS = { modules: {}, tags: { bureaucrat: { order: -1/0 }, coder: { u:'Coder' }, eleven: { u:'Eleven' }, yogscast: { u:'Yogscast' }, verified: { u:'Verified' }, inactive: { u:'Inactive' }, retired: { u:'Retired' }, artist: { u:'Artist' } } }; UserTagsJS.modules.inactive = 30; UserTagsJS.modules.newuser = true; UserTagsJS.modules.autoconfirmed = true; UserTagsJS.modules.mwGroups = ['bureaucrat', 'chatmoderator', 'patroller', 'rollback', 'sysop', 'bannedfromchat', 'bot', 'bot-global']; UserTagsJS.modules.custom = { 'Aethelhelm': ['coder'], 'AbiHaines': ['eleven'], 'MintyMinute': ['yogscast', 'verified'], 'Lomadia': ['yogscast', 'verified'], 'Ghostofsparkles': ['yogscast', 'verified', 'eleven'], 'SamStrippin': ['yogscast', 'verified'], 'RealTeutron': ['yogscast', 'verified', 'artist'], 'Kaeyidream': ['verified'], 'SoTotallyToby': ['verified'], 'Yogszach': ['verified'], 'Ravsy': ['yogscast', 'verified'], 'NanoSounds': ['yogscast', 'verified'], 'Phminehalo': ['eleven'], 'Bluriteboy02': ['eleven'], 'Johnny Thunder': ['eleven'], 'Soldier Elite': ['eleven'], 'TkaiaWolf': ['eleven'], 'Adamo Magus': ['eleven'], 'Yogscast-Tom': ['yogscast', 'verified'], 'Turpster': ['yogscast', 'verified'], 'IBringTheFunk': ['yogscast', 'verified'], 'DaveChaos' : ['yogscast', 'verified'], 'Ferazhin' : ['verified'], 'Ctrl+Alt+Llama' : ['verified'], 'IAmMaide' : ['verified'], 'Supertoastfairy' : ['coder'], 'Gamerboy555' : ['retired'], 'OrangeStripes Jr' : ['retired'], 'Johnny Thunder' : ['retired'], 'Wolfii' : ['retired'], 'MisterGryphon' : ['retired'], 'Space Jam' : ['retired'], 'DarknightWolf' : ['retired'], 'Shadow Phoenix Azazel' : ['eleven'], 'Xasparaz' : ['artist'], 'SwampinBlazes': ['artist'], 'Guardian of the Garde' : ['artist'], 'Napkat' : ['verified'], 'ThinWhiteMale' : ['artist'], 'Mighty claw' : ['verified'], 'CynicalWolf' : ['verified']

}; UserTagsJS.modules.metafilter = { }; importArticle({type:'script', article:'w:c:dev:UserTags/code.js'});

UserTagsJS.modules.newuser = { days: 4, // Must have been on the Wiki for 4 days edits: 10, // And have at least 10 edits to remove the tag namespace: 0 // Edits must be made to articles to count };

/* Displays a GMT clock */

importArticle({type:'script', article:'w:c:dev:DisplayClock/code.js'});

/* Shows IP of Anon users */

importArticles({   type: "script",    articles: [        "w:c:dev:RevealAnonIP/code.js",    ] });

/* Enables the use of countdowns on pages */

importArticles({   type: "script",    articles: [        "w:c:dev:Countdown/code.js"    ] });

/* Collapsoble infobox */

/** js Scripts **/

///////////////////////////////////////////////////////////////////////////////////////////////////////////

// ADVANCED AJAX AUTO-REFRESHING ARTICLES // Code courtesy of "pcj" of WoWpedia. Updated by Grunny of Wookiepedia for Oasis.

///////////////////////////////////////////////////////////////////////////////////////////////////////////

///////////////////////////////////////////////////////////////////////////////////////////////////////////

// END OF AJAX AUTO-REFRESH

///////////////////////////////////////////////////////////////////////////////////////////////////////////

/* Shows a "Back to Top" button in the down, right corner */

importScriptPage('BackToTopButton/code.js', 'dev');