MediaWiki:Common.js

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

/* Back To Top */ importScriptPage('BackToTopButton/code.js', 'dev'); /* Auto Refresh */ AjaxRCRefreshText = 'Auto-refresh'; AjaxRCRefreshHoverText = 'Automatically refresh the page'; ajaxPages = ["Special:RecentChanges","Special:WikiActivity"]; importScriptPage('AjaxRC/code.js', 'dev'); // // BEGINNING: JavaScript for placing the fair use rationale template inside the summary box on Special:Upload. Code by "wikipedia:User:Pinky49", created and coded specifically for Duty & Valour. function FairUseRationale { if((wgPageName == 'Special:Upload' || wgPageName == 'Special:MultipleUpload') && document.getElementById('wpDestFile').value == '') { document.getElementById('wpUploadDescription').value = ''; } } addOnloadHook(FairUseRationale); // ****** END: JavaScript for Special:Upload ******

/* Collapsible */ importScriptPage('ShowHide/code.js', 'dev');

/* Wiki Notification */ function addPageBottom { $("#WikiaRail").append('Welcome to the Kekkaishi Wiki! Go ahead and visit our Main Page for the latest updates. Dont forget to vote on the poll. '); } $(addPageBottom);

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