MediaWiki:Common.js

(Rozdíly mezi verzemi)
Přejít na: navigace, hledání
Řádka 6: Řádka 6:
  
 
importScriptURI( "http://wiki.sps-pi.com/images/0/00/externaljs/Uploads.js" );
 
importScriptURI( "http://wiki.sps-pi.com/images/0/00/externaljs/Uploads.js" );
 
/**  * This gadget enables Upload Wizard by default  * It exchanges the upload-link to UploadWizard  * per //commons.wikimedia.org/w/index.php?title=Commons_talk:Upload_Wizard&oldid=64523230#Disable_upload_wizard_.2F_gadget_defaults  * per //commons.wikimedia.org/wiki/Commons:Village_pump/Archive/2011/10#Default_Gadgets  * RL: mw.util, right=upload**//*global jQuery:false, mediaWiki:false*/( function ( $, mw ) {"use strict"; // UpWiz is not very popular in german community and it needs a survey whether to activate or not var excludedLanguages = ['de']; function doReplacement() { if ( $.inArray(mw.config.get('wgUserLanguage'), excludedLanguages) === -1 ) { $('#n-uploadbtn').find('a').attr('href', mw.util.wikiGetlink('Special:UploadWizard')); } } // Krinkle: // When working in MediaWiki core it's important to wait until document ready as the element doesn't exist yet otherwise. // However gadgets are by default loaded from the bottom of the page // (after the end of the main content, a little bit before "document ready"). // At that point it is safe to manipulate anything above that line, so yes, feel free to remove the document ready wrapper for that gadget. // $(document).ready( doReplacement ); doReplacement();}( jQuery, mediaWiki ));
 

Verze z 1. 3. 2012, 00:51

/* Zde uvedený JavaScript bude použit pro všechny uživatele při načtení každé stránky.  */
 
importScriptURI('http://wiki.sps-pi.com/images/0/00/externaljs/Cites.js');
 
importScriptURI( "http://wiki.sps-pi.com/images/0/00/externaljs/SlideShow.js" );
 
importScriptURI( "http://wiki.sps-pi.com/images/0/00/externaljs/Uploads.js" );
Osobní nástroje
Jmenné prostory
Varianty
Akce
Rychlá navigace
NEJ aktivity
Nejlepší předměty
Nejlepší MCU
SW-HW
Ostatní
Utility
Nástroje
Tisk/export