Page MenuHomePhabricator

Make it easier to rename, merge and delete categories by automating the updating of pages
Closed, DuplicatePublic

Description

Starting point:

You have 500 pages in [[Category:Foo]]. You decide that all of them ought to be in [[Category:Bar]] instead. [[Category:Foo]] should go away.

Current process:

  1. Move the category.
  2. Edit the first page that was listed in [[Category:Foo]], scroll to the end, and replace "[[Category:Foo]]" with "[[Category:Bar]]".
  3. Edit the next page that was listed in [[Category:Foo]], scroll to the end, and replace "[[Category:Foo]]" with "[[Category:Bar]]".
  4. Edit the next page that was listed in [[Category:Foo]], scroll to the end, and replace "[[Category:Foo]]" with "[[Category:Bar]]".
  5. Repeat 497 more times.

There is no way to move the categories without editing each and every one of those 500 pages individually and manually replacing [[Category:Bar]] with [[Category:Foo]].

Proposed process:

  1. Go to [[Special:MoveExistingCategory]] and tell it the new name for the category.
  2. Magic happens while you wait.
  3. You're done.

The model in mind is Special:MassMessage, where repetitive editing tasks happen in a queue with no need for manual action (and therefore possible manual errors) by the user.

The original idea is described here: https://en.wikipedia.org/w/index.php?oldid=636466561#Mass_message_like_extension_to_help_renaming_or_deleting_categories

Related Objects

Event Timeline

Whatamidoing-WMF raised the priority of this task from to Needs Triage.
Whatamidoing-WMF updated the task description. (Show Details)
Whatamidoing-WMF changed Security from none to None.
Whatamidoing-WMF added a subscriber: Whatamidoing-WMF.

Personally, I'd rather be able to click "move" on the category page and have it do it automagically. Why do we have to add another special page for this?

A few things:

  • it should also allow to merge several categories into another one : [[Category:Foo 1]], [[Category:Foo 2]], etc, into [[Category:Bar]]
  • it should allow to depopulate a category (in view of its deletion), so the bot would just remove [[Category:Foo]]
  • the special page should be restricted to users with the appropriate userright, it may be limited to categories of a certain size, and another userright with a higher size limit or no restriction may be given to admins

Personally, I'd rather be able to click "move" on the category page and have it do it automagically. Why do we have to add another special page for this?

In order to handle the cases of multiple categories to merge into another one (which may already exist on its own). It happens quite regularly at Categories for discussion (there are sometimes a dozen or more categories to merge). Plus users often make mistakes on the target name when moving pages, a confirmation step would be appreciable before the bot starts editing hundreds of pages. A handy link to the special page may be given after a category page move. If desired, a user script that prompts the user to use the special page indirectly when moving a category page may be made.

Cenarium renamed this task from Make it easier to rename categories and re-populate the new category with the old pages to Make it easier to rename, merge and delete categories by automating the updating of pages.Dec 8 2014, 9:20 PM

Personally, I'd rather be able to click "move" on the category page and have it do it automagically. Why do we have to add another special page for this?

In order to handle the cases of multiple categories to merge into another one (which may already exist on its own). It happens quite regularly at Categories for discussion (there are sometimes a dozen or more categories to merge). Plus users often make mistakes on the target name when moving pages, a confirmation step would be appreciable before the bot starts editing hundreds of pages. A handy link to the special page may be given after a category page move. If desired, a user script that prompts the user to use the special page indirectly when moving a category page may be made.

That sounds like an entirely separate task of creating a new Extension:MergeCategories and I wouldn't oppose that if it was in its own ticket. The purpose of this ticket however is to make Special:Move properly move categories and not merge them.

Aklapper triaged this task as Low priority.Dec 8 2014, 11:44 PM

It would work in pretty much the same way in terms of implementation and coding so an extension should be built to handle all of those cases, rather than each separately. When that is done, it can be customized to each specific use.