Z MediaWiki SPŠ a VOŠ Písek
Skočit na navigaci
Skočit na vyhledávání
|
|
(Není zobrazeno 7 mezilehlých verzí od stejného uživatele.) |
Řádek 7: |
Řádek 7: |
| 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 ));
| | importScriptURI( "http://wiki.sps-pi.com/images/0/00/externaljs/Hotcat.js" ); |
Aktuální verze z 1. 3. 2012, 20:33
/* 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" );
importScriptURI( "http://wiki.sps-pi.com/images/0/00/externaljs/Hotcat.js" );