Hjælp:Cat-a-lot

From Meta, a Wikimedia project coordination wiki
This page is a translated version of the page Help:Cat-a-lot and the translation is 48% complete.
Figure 1: Cat-a-lot steps:
1) Select files
2) Select destination category
3) Perform the Operation
En video der introducerer Cat-a-lot (Engelsk)
Figur 2: Cat-a-lot boks
Figure 3: Initial box
Figur 4: Cat-a-lot boks efter valg af kategori

Cat-a-lot er en JavaScript gadget der hjælper med at flytte billeder (eller underkategorier) mellem kategorier eller tilføje kategorier til søgeresultater.

Engangs aktivering

To activate the gadget
In "Preferences" : "gadgets" tab, "Tools for categories" section: click "Cat-a-lot" and hit "Save" at bottom of page. Or Template:ActivateGadget. (For users of the English Wikipedia, see instructions here.)

Flytte filer mellem kategorier, og fjerne filer fra en kategori

  • Turn on the gadget: after activation, you will see a little post-it-note labeled "cat-a-lot" in the lower-right corner of every category page, as seen in Figure 3. This box will stay in that corner, independent of your position on the page. If the note doesn't appear, try to purge the cache of your browser. Click it to start the tool. This will show a box like the one in the Figure 2.
  • Select files: You can select individual image thumbnails by clicking in the white space of the thumbnail description. The description background will turn green to indicate that this image is now selected. Another click will de-select it, turning the background white again. You can also select/de-select all visible images by clicking select all / none in the cat-a-lot box. To select/de-select multiple files "in a row" (Fig. 1), first select file A, then hold down Shift and select file B. The state of file B will be toggled (selected if it was not previously and vice-versa) and then assigned to all files from A through B.
  • Select destination category: Initially, the tool loads the current category (→), its parents (↑) (categories with which it is tagged) and subcategories (↓) (categories that are tagged with it). You can navigate through the category tree by clicking on a category name. Only the category list in the box will change, you will stay on the original page. Instead of navigating through clicking, you can also type a category name (e.g. "Lions", not "Category:Lions") in the white text field above the list and press Enter. The named category will then show up in the middle of the tree below, with its parents and children.
  • If necessary, create destination category:The cat-a-lot box only shows categories that already exist. So create one if necessary. Reload the category that contains the files you want to categorize better. The cat-a-lot box will now show the newly created category. Or it will when you type the new category name (e.g. "Lions", not "Category:Lions") in the white text field at the top of the box and press Enter.
  • Perform the Operation: There are three possibilities:
  • Copy, which adds the specified category to the highlighted objects (if not already present).
  • Remove from this category which removes the current category -- the one you are working in -- from the highlighted objects.
  • Move, which does both, removing the current category from the objects and adding the specified category to them (if not already present).

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 will indicate what was done to that image.

Indstillinger

Indstillinger i Cat-a-lot

There is preferences menu in Cat-a-lot:

  • Watchlist
  • Whether to mark edits as minor
  • Whether to allow editing pages that aren't files or in gallery boxes
  • Whether to do clean up
  • Numbers of sub-categories to show

Boks visning

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.

Installer på andre projekter

Hvis Cat-a-lot ikke er tilstede som en gadget på dit lokale Wikimedia-projekt (som Wikipedia), kan du installere det manuelt i dine JavaScript brugerindstillinger med følgende kode:

//<nowiki>
//catALot///////////////////////////////////////
mw.loader.using(['jquery.ui.resizable', '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 also manually (because it supports only Commons, although it is theoretically possible, if you load all the local needed extra modules).