MediaWiki:Common.js

/* Any JavaScript here will be loaded for all users on every page load. */ importScriptPage('ShowHide/code.js', 'dev'); importScriptPage('EditIntroButton/code.js', 'dev' ); importScriptPage('AjaxBatchDelete/code.js', 'dev'); importScriptPage('DisableArchiveEdit/code.js', 'dev'); importScriptPage('DupImageList/code.js', 'dev'); // importScriptPage('AdvancedOasisUI/code.js', 'dev'); violates Wikia TOU but is okay for individual users to use importScriptPage('PurgeButton/code.js', 'dev'); importScriptPage('ShowAdsButton/code.js', 'dev');

var ArchiveToolConfig = { archiveListTemplate: 'ArchCat', archivePageTemplate: 'ArchPage', archiveSubpage: 'Archive', userLang: true }; importScriptPage('ArchiveTool/code.js', 'dev');

/********************************************
 * PRELOADABLE TEMPLATE SYSTEM ***********
 * from starwars:User:Sikon/preload.js **
 * from starwars:User:Sikon/preload.js **

document.write(' ');

function fillPreloads {   var div = document.getElementById("lf-preload");

if(div == null) return;

div.style.display = 'block'; var span = document.getElementById('lf-preload-cbox');

var comboString = ""; comboString += " "; span.innerHTML = comboString; span = document.getElementById('lf-preload-pagename'); span.innerHTML = ''; span = document.getElementById('lf-preload-button'); span.innerHTML = '';

requestComboFill('stdPreloads', "Template:Stdpreloads"); }

function doCustomPreload {   doPreload(document.getElementById('lf-preload-pagename').getElementsByTagName('input')[0].value); }

function onPreloadChange {   var combo = document.getElementById("stdPreloads"); var value = combo.options[combo.selectedIndex].value;

if(value == "") return;

value = "Template:" + value + "/preload"; value = value.replace(" ", "_"); doPreload(value); }

addOnloadHook(fillPreloads);

/* Preload system ends */

/* The following Facebook box builder comes from Improvaganza Wiki. It's sort of cool, but it may not be something we keep around. It creates a little box allowing you to like whatever thing appears after "id=" below. At present, it's using the id for Doctor Who on Facebook. You can see an example of what it   does at user:CzechOut/Sandbox10. Might be an idea to rotate it every once in a while, putting up the id of   whatever's the "hottest" thing in the DWU at the moment. The IDs of some other shows: Torchwood: 113521238658450 The Sarah Jane Adventures: 109282012424173 Doctor Who: 127031120644257 Big Finish: 109833429043462 */

function fBox { $('#fbox').append(''); }

$(fBox);