MediaWiki:Common.js

// ===================================== //       Variables for functions // ===================================== // Ajax auto-refresh ajaxPages = ['Special:RecentChanges', 'Special:WikiActivity', 'Special:Watchlist', 'Special:Log', 'Special:Contributions', 'Special:NewFiles', 'Special:AbuseLog']; AjaxRCRefreshText = 'Refresh'; AjaxRCRefreshHoverText = 'Automatically refresh the page';

// Display Clock window.DisplayClockJS = { format: '%d %B %Y, %2H:%2M:%2S (UTC)', hoverText: 'Click to purge the cache' }; //ArchiveTool var ArchiveToolConfig = { archiveListTemplate: 'Archived Talk Tabs', archivePageTemplate: 'Archived Talk Tabs', archiveSubpage: 'Archive', userLang: true };

// ===================================== //               Imports // =====================================

// See MediaWiki:ImportJS

// ===================================== //               Others // ===================================== //File Links AutoUpdate if (wgPageName.indexOf("Special:MovePage/File:") != -1 || (wgCanonicalNamespace == "File" && Storage)){ importArticles({       type: "script",        article: "u:dev:MediaWiki:FileUsageAuto-update/code.js"    }); }

/* Portable infoboxes colors */ (function{   var infobox = $('.portable-infobox');    if (infobox.length) {        var color = ,        classNames = infobox.attr('class').split(' ');        for (var i = 0; i < classNames.length; i++) {            if (classNames[i].indexOf('pi-theme-') !== -1) {                color = classNames[i].replace('pi-theme-', );                break;            }        }        if (color) {            infobox.find('h2').css('background-color', '#' + color);        }    } });

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