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('DupImageList/code.js', 'dev'); /* var ArchiveToolConfig = { archiveListTemplate: 'ArchCat', archivePageTemplate: 'ArchPage', archiveSubpage: 'Archive', userLang: true }; */ //importScriptPage('ArchiveTool/code.js', 'dev');

/*********************************************/

/* Compatibilidad, al inicio del resto de carga de elementos. Necesario para que todas las utilidades que funcionan en Monobook y Monaco funcionen en oasis /*function oasisCompatElements { $(document.body).append(' '); } if (window.skin == 'oasis' || document.location.toString.indexOf('useskin=wikia') != -1) { window.skin = 'oasis'; // Error de Wikia cuando se usa useskin window.bodyContentId = 'WikiaArticle'; $(oasisCompatElements); }
 * Wikia: ¿Quién tuvo la estupenda idea de no respetar los ID's comunes del wiki? */

/********************************************
 * 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 */ /*

var $UT = UtilityTools; if (!window.$G){ window.$G = $UT.get; } window.bodyContentId = 'bodyContent'; /* Image name validator from es.pokemon.wikia */ /* if (wgNamespaceNumber == -1 && (window.wgCanonicalSpecialPageName == 'Upload' || window.wgCanonicalSpecialPageName == 'MultipleUpload')) { importScript('MediaWiki:Common.js/Clases/UploadValidator.js'); }

/* MOS box from Brickipedia keep at end */ importScript('MediaWiki:Common.js/mosbox.js');