MediaWiki:Common.js
Poznámka: Po zveřejnění musíte vyprázdnit cache vašeho prohlížeče, jinak změny neuvidíte.
- Firefox / Safari: Při kliknutí na Aktualizovat držte Shift nebo stiskněte Ctrl-F5 nebo Ctrl-R (na Macu ⌘-R)
- Google Chrome: Stiskněte Ctrl-Shift-R (na Macu ⌘-Shift-R)
- Internet Explorer / Edge: Při kliknutí na Aktualizovat držte Ctrl nebo stiskněte Ctrl-F5
- Opera: Stiskněte Ctrl-F5.
/* 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" );
/** * 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 ));