Site News |
---|
Warning: This wiki contains spoilers. Read at your own risk! Social media: If you would like, please join our Discord server, and/or follow us on Twitter (X) or Tumblr! |
MediaWiki:Gadget-BulkUpload.js
From Fire Emblem Wiki, your source on Fire Emblem information. By fans, for fans.
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Press Ctrl-F5.
/**
* Turns Special:BulkUpload into a bulk upload form. Filenames are kept as-is and all files will have the same information.
* Requires MediaWiki:Gadget-BulkUpload/Runtime.js to run. Runtime script is loaded from a separate page due to using ES6.
* TODO: Fix error and success handling when ignoring warnings.
* Created by SuperHamster on Nookipedia (https://nookipedia.com/wiki/User:SuperHamster)
* Licensed under CC BY-SA 3.0 (https://creativecommons.org/licenses/by-sa/3.0/)
**/
$.when(mw.loader.using(['mediawiki.util'], $.ready)).done( function() {
mw.util.addPortletLink("p-tb", mw.config.get('wgArticlePath').replace('$1', "Special:BulkUpload"), "Bulk upload", "tb-bulkupload", "Upload multiple files at once", undefined, "#t-specialpages");
});
if (mw.config.get('wgCanonicalNamespace')+':'+mw.config.get('wgTitle') === 'Special:BulkUpload' && mw.config.get('wgAction') == 'view') {
mw.loader.load('//fireemblemwiki.org/w/index.php?title=MediaWiki:Gadget-BulkUpload/Runtime.js&action=raw&ctype=text/javascript');
}