Last modified: 2014-09-04 20:31:55 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T7451, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 5451 - Moving category description pages
Moving category description pages
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Categories (Other open bugs)
unspecified
All All
: Low enhancement with 9 votes (vote)
: 1.24.0 release
Assigned To: Jackmcbarn
:
: 15805 34682 (view as bug list)
Depends on: 17571
Blocks: hackathon2014
  Show dependency treegraph
 
Reported: 2006-04-04 18:24 UTC by Marco
Modified: 2014-09-04 20:31 UTC (History)
17 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Marco 2006-04-04 18:24:31 UTC
Normally, it is not possible to move a category page, such as
[[de:Category:Comic]] (only example, doesn't need to be moved!), only the talk
page, e.g. [[de:Category talk:Comic]. This is a bad behaviour in categories
which description pages have been edited multiple; because you have to CnP it
and give authors, quite messy system.

Would it be possible to move the categories pages(No need for re-categorizing,
we have multiple bots who can do this)?
Comment 1 J JIH 2006-10-08 16:23:45 UTC
I totally support enabling the possibility to move a category page. This is
especially needed at Chinese Wiki sites where starting a page in either
traditional or simplified Chinese will prevent the creation of the other even if
intended to make a redirect.

Would any available developers please enable the possibility to move a category
page? Chinese Wikipedia, Chinese Wiktionary, and Chinese Wikisource urgently
need this new function to work well.

Best wish,

User:Jusjih as an admin at Chinese Wikipedia, Chinese Wiktionary, and Chinese
Wikisource
Comment 2 Jimmy Collins 2006-10-08 19:43:39 UTC
MediaWiki does not support renaming of category description. Changing from
"Wikimedia" to "MediaWiki".
Comment 3 Aryeh Gregor (not reading bugmail, please e-mail directly) 2006-10-09 00:06:15 UTC
This is currently intended behavior, although not necessarily desired.  It's not
a bug, it's a missing feature.  Major > enhancement.

As for when this has arrived, bug 709 is similar but much more important, and
it's gone unfixed for over two years.  Be patient; someone will undoubtedly get
to it sooner or later.  For now, there are workarounds via bot that you could
use (see [[Template:Category redirect]] on enwiki, currently dealt with by a bot
run by [[User:RobertG]]).
Comment 4 Mark Clements (HappyDog) 2007-05-21 00:53:38 UTC
Currently, if a category is badly named the process is to recat the articles, copy the text of the current revision to the new location and delete the old (now empty) category.  This violates the GFDL, but is fairly common practice I think.  Bug 709 is basically the same as this, except for images, but I think people are more hesitant to do this for images, because of all the extra faffing required to transfer the physical file, so it may be that this bug is more important, and also a lot easier to implement I expect.  Just my opinion though, and of course a fix for both would be great.
Comment 5 Mark Clements (HappyDog) 2007-05-21 01:00:38 UTC
Actually, what's stopping us just enabling the move operation for this namespace?  I assume it's there for a reason, but the only issue I can think of is that it requires an update to the cat link cache, which I would have thought would be a fairly simple thing to refresh (either at move time, or via the job queue).
Comment 6 Aryeh Gregor (not reading bugmail, please e-mail directly) 2007-05-21 01:03:00 UTC
I doubt there's any impediment.  It was probably disabled due to concerns about confusion.  Ask Brion or Tim or someone about it.
Comment 7 Rob Lanphier (RobLa) 2008-12-16 06:07:17 UTC
*** Bug 15805 has been marked as a duplicate of this bug. ***
Comment 8 Derk-Jan Hartman 2010-06-21 23:40:25 UTC
Primary reason is because category redirects don't work as most people expect. It is already better than a couple years ago, but still not perfect. Depends on Bug 17571.
Comment 9 User:Docu 2011-04-16 07:52:40 UTC
Related: bug 28569 titled "Create a userright allowing to move pages in category namespace (without moving category members)"
Comment 10 Helder 2011-05-03 20:59:29 UTC
I just noticed a instance of this problem on [[wikibooks:pt]]: An user created [[wikibooks:pt:Category:Patês e pastas]] explaining a how to do a recipe, but such content should have been added to a page of our Cookbook (in the "Main" namespace), such as [[Livro de receitas/Patê de frango]].

In order to fix that, another user copied the text from one page to the other, but forgot to indicate the original author of the recipe. Usually, this second error could be easily fixed by merging the histories of both pages, but the procedure requires the ability to move the source page to the target, as explained on [[WP:HISTMERGE]]. Since we can't move a page to outside "Category" namespace, such solution doesn't apply.

We could just delete the new page and recreate it making sure to indicate the author properly in the edit summary, but this is not the ideal solution: authors cited in this way are not properly cited in the PDF files generated by collection extension (see bug 28064). So, we ended up in a situation where, involuntarily, we are infringing the terms of the CC-BY-SA license.

Having both bugs unsolved makes it difficult to guarantee that the authors are properly  credited when they contribute to Wikimedia wikis if their first edit happens to be made in the wrong place.
Comment 12 Nemo 2011-05-04 07:09:43 UTC
(In reply to comment #10)
> We could just delete the new page and recreate it making sure to indicate the
> author properly in the edit summary, but this is not the ideal solution:
> authors cited in this way are not properly cited in the PDF files generated by
> collection extension

This is not relevant. The terms of use say that it's fair to add a link to the original page. Otherwise, it would be impossible to translate pages or move text from a page to another one.
In theory, you probably could transwiki the category in some other wiki on a random namespace and transwiki it back to you destination page, but it's definitely not worth the effort.
Comment 13 Sam Reed (reedy) 2012-02-24 15:04:44 UTC
*** Bug 34682 has been marked as a duplicate of this bug. ***
Comment 14 MA 2013-02-25 22:34:40 UTC
I think that this might get done using the same system that the Translate Extension uses: a FuzzyBot for categories. An admin moves the page and then the extension account, which depends from the JobQueue, updates the pages where the old category was present to the new name. That'd automate the process and we'll be able to move the page and the history.

Another possibility would be to reinvent how categories are added to the articles. If we didn't had to write [[:Category:Foo]] on each article we want to categorize, but if it were a special page or something similar, category changes and category additions, removals and renames would be quick and automatic.

Hope that it helps. Regards.
Comment 15 Gerrit Notification Bot 2014-02-03 23:02:34 UTC
Change 111096 had a related patch set uploaded by Jackmcbarn:
Allow moving category pages

https://gerrit.wikimedia.org/r/111096
Comment 16 Gerrit Notification Bot 2014-05-09 17:22:19 UTC
Change 111096 merged by jenkins-bot:
Allow moving category pages

https://gerrit.wikimedia.org/r/111096
Comment 17 James Forrester 2014-05-09 18:04:57 UTC
Woohoo.
Comment 18 Philippe Verdy 2014-05-09 22:58:01 UTC
When moving a category descrition page, it cannot leave a simple #redirect[[]] there (of course this should be avoided because there will still be pages in the category that the hard redirect will not let us see easily.

So after moving a category there should remain a *soft* redirect.

One good soludion would be that #REDIRECT link, left in a category page after the ove, could become a *soft* redirect too, and tht it could be rendered automatically using the templates configurable on the wiki.

This way, it would no longer be necessary to edit the old category page to insert the soft redirction banner the basic #REDIRECT could remain there and would be fully enough.

Note that in many wikis, the category soft redirect banner templates do more than just display ing the link to the new category: they also list the soft-redirected in a maintenance category containing all redirected categories, and also look at the number of pages in listed in the redirected category to see if it is empty. As long as the redirected category is not empty, the soft redirected category also becomes a subcategory of the target category (and there it appears with an index key like a backward arrow, and that non-emty category is also listed in another maintenance category).

Once the redirected category becomes empty, the redirected category would no longer be listed in the new category, and would be removed from the maintenance category for non-empty redirected categories this check should be done by MediaWiki when savng pages (MEdiaWiki should compare the list of categories in the existing version and in the new version to see how to update the categories) without forcing us to use a null-edit in the redirected category because it is now empty (this would save time to those that maintain categories).

In summary, Mdiawiki should then :

- use #REDIRECT links like other renamed pages (no need to insert a banner template) - note that some bots will need to be updated to detect the suggested target to use (they know that the category is redirected as it is listed in a maintenance category for that, but to know the target, they need to parse the category page to detected the banner template: this parsing would be simplified a lot if using onky #REDIRECT).

- no longer go to to the new category automaticaly when following an existing wikilink (???)

- propose automatically to rename the category used when editing pages using the old category, when saving the page.

- MEdiaWiki would render #REDIRECT links in soft-redirected category pages with a configurable banner template (possibly stored now in the MediaWiki: namespace instead of the existing Template: namespace; with variable names).

- MediaWiki would also make the necessary arrangement for category maintenance (or this could be done in the code used in the configurable banner template, ike it is done today).
Comment 19 Bartosz Dziewoński 2014-05-09 23:00:57 UTC
(In reply to Philippe Verdy from comment #18)
> When moving a category descrition page, it cannot leave a simple
> #redirect[[]] there (of course this should be avoided because there will
> still be pages in the category that the hard redirect will not let us see
> easily.

Of course it can.
Comment 20 Philippe Verdy 2014-05-09 23:39:10 UTC
(In reply to Bartosz Dziewoński from comment #19)
> (In reply to Philippe Verdy from comment #18)
> > When moving a category descrition page, it cannot leave a simple
> > #redirect[[]] there (of course this should be avoided because there will
> > still be pages in the category that the hard redirect will not let us see
> > easily.
> 
> Of course it can.

Of course NO. May be currently yes, but obvisously what is done is wrong because whn you follow a category link at the botto, of an article, you won't find that article in the displayed category, because the #REDIRECT is a **hard** redirect. This puzzles lot of people and that's why we have used doft redirects instead.

All this topic means nothing if we can rename categories just as today, while leaving a #REDIRECT than performs hard redirects without takeing care of pages and subcategories listed there.

All my comment is about making #REDIRECT in a categpry page to rendered as a soft redirect.

If this confuses scripts, we could use another keyword such as #SOFTREDIRECT and renaming a category would use it for the created new page replacing the old category page that has been moved.
Comment 21 John Mark Vandenberg 2014-05-10 00:02:48 UTC
(In reply to Philippe Verdy from comment #18)
> When moving a category descrition page, it cannot leave a simple
> #redirect[[]] there

It can and it should!

However, if you look at the commit message on https://gerrit.wikimedia.org/r/#/c/111096/, the author has very kindly provided 'category-move-redirect-override', which allows the default behaviour to be overriden.

Rather than alter how a #REDIRECT works, I think the focus should be on improving other real issues that now appear because categories can be moved.

> there will
> still be pages in the category that the hard redirect will not let us see
> easily.

bug 3311

Another way to improve the situation is for the output of the target (reached via a redirect) to say more than 'redirected from [category:old category]'.  If automatic category member moving is not implemented, it could say 'redirected from [category:old category] which has 10 members', which alerts the reader to the fact that they should visit the old category.
Comment 22 Philippe Verdy 2014-05-10 00:20:34 UTC
(In reply to John Mark Vandenberg from comment #21)
> Another way to improve the situation is for the output of the target
> (reached via a redirect) to say more than 'redirected from [category:old
> category]'.  If automatic category member moving is not implemented, it
> could say 'redirected from [category:old category] which has 10 members',
> which alerts the reader to the fact that they should visit the old category.

That's clearly not needed ! We don't have to use any template in the target category, only the soft-redirected category uses a template that will automatically recategorize as a subcategory of the target category, using a sort key listing it with an index character like a backward arrow.

I don't see any rationale for modifying the target category (i.e. the former category page that has been moved). Listing the older category as a subcategory, as long as it is not empty, is enough !!! (and this works well in Commons, Meta-Wiki, Wikipedia... except that sometime we need to null-edit the empty soft-redirected category to unlist it from the target category and remove if from the maintenance category listing non-empty soft-redirected categories)
Comment 23 John Mark Vandenberg 2014-05-10 00:52:30 UTC
(In reply to Philippe Verdy from comment #22)
> (In reply to John Mark Vandenberg from comment #21)
> > Another way to improve the situation is for the output of the target
> > (reached via a redirect) to say more than 'redirected from [category:old
> > category]'.  If automatic category member moving is not implemented, it
> > could say 'redirected from [category:old category] which has 10 members',
> > which alerts the reader to the fact that they should visit the old category.
> 
> That's clearly not needed ! We don't have to use any template in the target
> category, only the soft-redirected category uses a template that will
> automatically recategorize as a subcategory of the target category, using a
> sort key listing it with an index character like a backward arrow.
> 
> I don't see any rationale for modifying the target category (i.e. the former
> category page that has been moved).

I only suggested a possible improvement to the *automated* 'redirected from' message.

> Listing the older category as a
> subcategory, as long as it is not empty, is enough !!! (and this works well
> in Commons, Meta-Wiki, Wikipedia... except that sometime we need to
> null-edit the empty soft-redirected category to unlist it from the target
> category and remove if from the maintenance category listing non-empty
> soft-redirected categories)

This is a solution which will continue to work.
Comment 24 Nemo 2014-05-15 06:18:22 UTC
Added to https://www.mediawiki.org/wiki/MediaWiki_1.24

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links