MediaWiki:Common.js/upload.js

// =================================================== //             Images upload // // To guide users in adding information // about the upload images // Codes in part took from // http://admintools.wikia.com/wiki/MediaWiki:Wikia.js/uploadPhoto.js // ===================================================

// ============================== //      Oasis skin changes // ==============================

// Restoring of Special:Upload // Redirect buttons to Special:Upload $(function { 	if (window.UploadPhotos && window.UploadPhotos.showDialog) {		$('a.wikia-button.upphotos').unbind('click',UploadPhotos.showDialog);	} }); // END Restoring of Special:Upload // Placeholders link to Special:Upload function PlaceholderLink { $('.wikiaPlaceholder a').attr('href', '/wiki/Special:Upload').unbind('click'); } $(PlaceholderLink); // END Placeholders link to Special:Upload

// =============================== //      Preload description // =============================== // Add a standard description to new images $(function preloadUploadDesc { if ( wgCanonicalSpecialPageName != 'Upload' || $.getUrlVar('wpForReUpload') ) { return; }  if ($('#wpUploadDescription').length) {    $('#wpUploadDescription').append('== Source ==\n' + '\n\n'               + '== Licensing ==\n'      + ''); } }); // END Preload description