Help:Gadget-Cat-a-lot/hi



From Wikimedia Commons, the free media repository



Jump to navigation  Jump to search  

The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
This page is a translated version of a page Help:Gadget-Cat-a-lot and the translation is 0% complete. Changes to the translation template, respectively the source language can be submitted through Help:Gadget-Cat-a-lot and have to be approved by a translation administrator.
  • Bahasa Melayu
  • Deutsch
  • English
  • Nederlands
  • Tiếng Việt
  • dansk
  • español
  • euskara
  • français
  • galego
  • italiano
  • polski
  • português do Brasil
  • čeština
  • Ελληνικά
  • беларуская (тарашкевіца)
  • русский
  • українська
  • العربية
  • فارسی
  • کوردی
  • हिन्दी
  • বাংলা
  • தமிழ்
  • മലയാളം
  • ไทย
  • 中文
  • 日本語
  • ꯃꯤꯇꯩ ꯂꯣꯟ
  • 한국어
  • Figure 1: Cat-a-lot steps:
    1) Select files
    2) Select destination category
    3) Perform the Operation
    A video intro to using Cat-a-lot (English)
    Figure 2: Initial box
    Figure 3: Cat-a-lot box
    Figure 4: Cat-a-lot box after selecting category

    Cat-a-lot is a JavaScript gadget that helps with moving, removing and adding files (or subcategories) between, from and to categories.

    One-time activation

    Activate this gadget

    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.

    Moving files between categories, and removing files from a category

    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.

    Preferences

    Figure 5: Cat-a-lot’s preferences

    There is a Preferences menu in Cat-a-lot:

    Box display

    Figure 6: Cat-a-lot box can be dragged

    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.

    Open bugs & features

    You can report bugs or request new features on this page:

    Help:Gadget-Cat-a-lot/Open bugs & features.

    Translations

    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).

    Install on other projects

    As your user gadget

    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).

    As a project gadget

    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');
     });
    }
    
    Note: The marked lines are optional.

    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
    


    More local configuration

    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" };

    Notes

    1. a b Not taking into account the tutorial video, which is inserted between Figure 1 and 2, in the document as of its November 7, 2022 version.

    Retrieved from "https://commons.wikimedia.org/w/index.php?title=Help:Gadget-Cat-a-lot/hi&oldid=879658708"

    Category: 
    Cat-a-lot
     


    Navigation menu


    Personal tools  




    English
    Not logged in
    Talk
    Contributions
    Create account
    Log in
     


    Namespaces  




    Help page
    Discussion