Cat-a-lot is a JavaScript gadget that helps with moving, removing and adding files (or subcategories) between, from and to categories.
Alternatively: you can go into your "Preferences" : "gadgets" tab, select "Cat-a-lot" in the "Tools for categories" section and "Save" at bottom of page.
See also the English Wikipedia instructions.
Video. See the help video in the right sidebar. It helps greatly in understanding the info below.
In each case, all of the other categories which might be associated with any of the objects remain unchanged. A progress indicator will be shown. After all images were processed, a report is shown including possible problems, and the whitespace area below each image or category will indicate what was done to that image or category. If the action is not correct, then immediately click the "Revert" button before leaving the page. Otherwise your opportunity to mass revert is gone. An admin may be able to help later.
There is a Preferences menu in Cat-a-lot:
The Cat-a-lot box display can be toggled by clicking on Cat-a-lot in the lower part of the box.
During the step of selecting the files, the Cat-a-lot box window can be resized by dragging the upper edge of the window. It can also be dragged to a different part of the screen.
You can report bugs or request new features on this page:
Help:Gadget-Cat-a-lot/Open bugs & features.
English phrases from MediaWiki:Gadget-Cat-a-lot.js/translating can be translated and saved in MediaWiki:Gadget-Cat-a-lot.js/de (for example).
If Cat-a-lot is not present as a gadget in your local Wikimedia project (like Wikipedia), you can install it manually in your user JavaScript settings with the following code:
//<nowiki>
/* Cat-a-lot - changes category of multiple files */
mw.loader.using(['jquery.ui', 'mediawiki.util'], function(){
mw.loader.load('//commons.wikimedia.org/w/load.php?modules=ext.gadget.Cat-a-lot');
});
////////// Cat-a-lot user preferences //////////
window.catALotPrefs = {"watchlist":"preferences","minor":true,"editpages":true,"docleanup":false,"subcatcount":10};
////////////////////////////////////catALotEnd//
//</nowiki>
The semi-automatic preferences are not loaded with this example, so you need to set this manually as well (because it supports only Commons, although it is theoretically possible, if you load all the local needed extra modules).
1. Copy the next code into the local MediaWiki:Gadget-Cat-a-lot.js:
/**
* Cat-a-lot - changes category of multiple files
**/
if (mw.config.get('wgNamespaceNumber') === 14) {
window.catALotPrefs = { editpages: true, subcatcount: 100 };
mw.loader.using(['jquery.ui', 'mediawiki.util']).done(function () {
mw.util.addCSS("#cat_a_lot_settings { display:none !important;}"); // Preferences depend on some Commons gadgets, not available locally
mw.loader.load('//commons.wikimedia.org/w/index.php?title=MediaWiki:Gadget-Cat-a-lot.js&action=raw&ctype=text/javascript');
mw.loader.load('//commons.wikimedia.org/w/index.php?title=MediaWiki:Gadget-Cat-a-lot.css&action=raw&ctype=text/css', 'text/css');
});
}
2. Save a description into the local MediaWiki:Gadget-Cat-a-lot (you can translate this one, or one of existing):
'''[[c:Help:Gadget-Cat-a-lot|Cat-a-lot]]''': A tool that helps with moving multiple files between categories or adding categories to search results.
3. Add a definition to the local MediaWiki:Gadgets-definition:
Cat-a-lot[ResourceLoader|dependencies=mediawiki.util]|Cat-a-lot.js
To use the solving of soft-redirects (since version 4.0) on your project, you need to put this category name in the preferences manually (on Commons this is "Category redirects", ideally on your MediaWiki:Gadget-Cat-a-lot.js). The example shows the category for the English Wikipedia:
window.catALotPrefs = { "redir_category": "Wikipedia soft redirected categories" };