MediaWiki:Common.js

// Display Clock window.DisplayClockJS = { format: '%d %B %Y, %2H:%2M:%2S (UTC)', hoverText: 'Clicca per aggiornare la cache' };

// User Tags window.UserTagsJS = { modules: {}, tags: {} }; UserTagsJS.modules.inactive = 30; UserTagsJS.modules.newuser = true; UserTagsJS.modules.autoconfirmed = true; // NOTE: bannedfromchat displays in Oasis but is not a user-identity group so must be checked manually UserTagsJS.modules.mwGroups = ['bureaucrat', 'chatmoderator', 'patroller', 'rollback', 'sysop', 'bannedfromchat', 'bot', 'bot-global', 'staff', 'helper', 'vstf']; UserTagsJS.modules.metafilter = { sysop: ['bureaucrat', 'founder'], bureaucrat: ['founder'], chatmoderator: ['sysop', 'bureaucrat'] };

//****************************************/ /* sliders using jquery by User:Tierrie */ /****************************************/ mw.loader.using( ['jquery.cookie']); /****************************************/ /* sliders using jquery by User:Tierrie */ /****************************************/ //wsl.loadScript("http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"); //wsl.loadScript("http://dragonage.wikia.com/index.php?title=MediaWiki:Jquery-ui.min.js&action=raw&ctype=text/javascript"); mw.loader.using( ['jquery.ui.tabs'], function { var $tabs = $("#portal_slider").tabs({ fx: {opacity:'toggle', duration:100} } );  $("[class^=portal_sliderlink]").click(function { // bind click event to link $tabs.tabs('select', this.className.replace("portal_sliderlink_", "")); return false; }); $('#portal_next').click(function { $tabs.tabs('select', ($tabs.tabs('option', 'selected') == ($tabs.tabs('length'))-1) ? 0 : $tabs.tabs('option', 'selected') + 1 ); // switch to next tab return false; }); $('#portal_prev').click(function { // bind click event to link $tabs.tabs('select', ($tabs.tabs('option', 'selected') == 0) ? ($tabs.tabs('length')-1) : $tabs.tabs('option', 'selected') - 1 ); // switch to previous tab return false; }); });

/* ShowHide */ var ShowHideConfig = { brackets: '' }; importScriptPage('ShowHide/code.js', 'dev'); /* importScriptPage; */ importArticles({	type: "script",	articles: [	"MediaWiki:Common.js/announcement.js", /* Announcement for specified pages at discretion */       // Test if an Element has a Certain Class         MediaWiki:Common.js/elementClass.js',         // Funzioni accessorie per Cookie         'MediaWiki:Common.js/cookie.js',         // Togglers (toggles the display of elements on a page)         'MediaWiki:Common.js/togglers.js',         // Ajax auto-refresh         'w:dev:AjaxRC/code.js',         // Elenchi random         'MediaWiki:Common.js/elenchiRandom.js',         // Wikia Skin Chat          'MediaWiki:Common.js/wikiaSkinChat.js',         // Link in uscita 'MediaWiki:Common.js/links.js',         // Upload 'MediaWiki:Common.js/upload.js',         // MiniComplete 'w:dev:MiniComplete/code.js',         // FixWantedFiles ' w:dev:FixWantedFiles/code.js',         // SignatureCheck 'w:dev:SignatureCheck/code.js', // Codice Konami 'MediaWiki:Common.js/konami.js', // SearchSuggest 'w:dev:SearchSuggest/code.js', // Custom preload templates 'MediaWiki:Common.js/preloadTemplates.js', // ReferencePopups 'w:dev:ReferencePopups/code.js', // Note dinamiche 'MediaWiki:Common.js/dynamicNotes.js', // Display Clock 'w:dev:DisplayClock/code.js', // Personalizzazione dell'interfaccia 'MediaWiki:Common.js/customInterface.js', // User Tags 'w:dev:UserTags/code.js', // Statistiche del sito 'MediaWiki:Common.js/statistiche.js', // Copy tracker 'MediaWiki:Common.js/tracker.js', // Codici asincroni socials 'MediaWiki:Common.js/async.js' //Quiz 'w:dev:Quiz/code.js',

] });