Commons:Bots/Requests/Hazard-Bot 3

From Wikimedia Commons, the free media repository
Jump to: navigation, search

Hazard-Bot (talk · contribs)

Operator: Hazard-SJ (talk · contributions · Number of edits · recent activity · block log · User rights log · uploads · Global account information)

Bot's tasks for which permission is being sought: Removing main categories where subcategories are present, such as removing Category:Kharkiv from pages with Category:Cultural heritage monuments in Kharkiv. Generally upon request or if I see an instance of the problem.

Automatic or manually assisted: Automatic

Edit type (e.g. Continuous, daily, one time run): Occaisional

Maximum edit rate (eg edits per minute):

Bot flag requested: (Y/N): No

Programming language(s): Python

 Hazard-SJ  ✈  00:49, 29 November 2012 (UTC)

Discussion

  • How far up the category tree are you looking when you decide if a category is a main category? --Dschwen (talk) 04:02, 29 November 2012 (UTC)
    I wasn't considering the use of any specific limit.  Hazard-SJ  ✈  04:42, 30 November 2012 (UTC)
  • A test edit was made.  Hazard-SJ  ✈  04:42, 30 November 2012 (UTC)
  • I suggest not doing this in hidden/maintenance categories. There are some maintenance situations where it's good to have files in both a daughter and parent cat. --99of9 (talk) 04:50, 30 November 2012 (UTC)
  • Also, there are cases where something get's categorized something like "XXX by country" and "XXX by colour", but if the country doesn't have a cat yet, the by-country version stays in the parent until there is one. So I think perhaps you should not do this if there is a " by " category in between the daughter and parent. --99of9 (talk) 04:53, 30 November 2012 (UTC)
    • Agreed. I don't think this task is appropriate for an automatic bot at all, since there are so many potential exceptions to the rule. – Philosopher Let us reason together. 12:31, 1 December 2012 (UTC)
      • In between? Not sure if this helps, but I don't recurse the subcats. Also, if there are still problems, could I just do Category:Kharkiv and keep coming back here for future requests?  Hazard-SJ  ✈  01:50, 2 December 2012 (UTC)
        • What did you mean by your answer to Dschwen's question if you didn't mean recursion? I'm ok with the single category if that's what you really want to do. By the way, I might be wrong, but I think this kind of category diffusion can be achieved with {{Intersect categories}}, allowing an existing bot to do the work. --99of9 (talk) 00:24, 11 December 2012 (UTC)
          • Yes re single, and re {{Intersect categories}}, are the other cats removed?  Hazard-SJ  ✈  02:45, 12 December 2012 (UTC)
            • Yes I believe the intersect categories moves the files out of the original categories, into the receiving category. --99of9 (talk) 03:50, 12 December 2012 (UTC)
  • This request should be withdrawn in my opinion. I'm not at all convinced that a fully automatic treatment of this categorization issue is feasible. The existing CategoryBot solution using the Intersect Categories template is sufficient and safer. If you still want to proceed with your idea, I suggest that you make the bot come up with a list of filled out IntersectCategory templates on a separate page (maybe in your user space) that can be manually reviewed and manually pasted onto the appropriate intersection category pages. --Dschwen (talk) 16:27, 17 December 2012 (UTC)

Closed as: withdrawn --99of9 (talk) 11:05, 6 January 2013 (UTC)