MediaWiki:Common.js

/* These codes are run on every page load for all users. */

// Auto Update Recent Changes // See http://dev.wikia.com/wiki/AjaxRC AjaxRCRefreshText = 'Auto-Refresh'; AjaxRCRefreshHoverText = 'Automatically refresh the page'; ajaxPages = ["Special:RecentChanges","Special:WikiActivity"]; importScriptPage('AjaxRC/code.js', 'dev');

// Infinity Credit Price Calculator function infcalculate{ var inftotal=0; var infmin=Number($("#inf-startlv-in").val); var infmax=Number($("#inf-finallv-in").val); for(var i=infmin+1; i<=infmax; i++){ inftotal+=Number($("#inf-lv"+i+"cost").text.replace(/[,–-]/g, '')); } var strtotal = inftotal.toString.replace(/\B(?=(\d{3})+(?!\d))/g, ","); $("#inf-totalcost").text(strtotal); } $(function{ $("#inf-startlv").html(""); $("#inf-finallv").html(""); infcalculate; $("#inf-startlv,#inf-finallv").change(function{ infcalculate; }); });

// Deprecation of Maps warning if(location.href.match("Special:Maps")){ $("#mw-content-text").before(" Deprecation Warning Please be advised that Wikia has decided to stop supporting Wikia Maps. While Acepedia and many other wikis heavily disagree with their decision, we have no control over this. All Maps below are unsupported and may feature outdated or inaccurate information as well as bugs or glitches in functionality. The maps are not being removed and will remain as they are for archival and demonstrative purposes, as well as out of the hope that Wikia will reverse their decision.  Once again, please understand that the below content may be outdated or inaccurate, and may not work properly.  "); }

importArticles({   type:'script',    articles: [        // Countdown: http://dev.wikia.com/wiki/Countdown        'w:c:dev:Countdown/code.js',        // Duplicate Images: http://dev.wikia.com/wiki/DupImageList        // Page location: http://acecombat.wikia.com/wiki/Acepedia:Duplicate_images        'w:c:dev:DupImageList/code.js',        // Reference Popups: http://dev.wikia.com/wiki/ReferencePopups        'w:c:dev:ReferencePopups/code.js',        // Fix Wanted Files: http://dev.wikia.com/wiki/FixWantedFiles        'w:c:dev:FixWantedFiles/code.js'    ] });