https://bugzilla.wikimedia.org/show_bug.cgi?id=55115
Web browser: --- Bug ID: 55115 Summary: category.py partlyremove -cat:anything Product: Pywikibot Version: unspecified Hardware: All OS: All Status: NEW Severity: enhancement Priority: Unprioritized Component: General Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: legoktm.wikipedia@gmail.com Classification: Unclassified Mobile Platform: ---
Originally from: http://sourceforge.net/p/pywikipediabot/feature-requests/36/ Reported by: Anonymous user Created on: 2005-07-28 14:38:50 Subject: category.py partlyremove -cat:anything Original description: Hello!
In our wiki we have several categories on each article.
If I want to remove a cat but want to have the rest to stay as they are the current category.py won't help.
category.py remove with cat=example1 would remove all articles in example1.
Can you please add a function that all articles in a special cat may have another cat removed.
So category.py remove -cat:example1 would ask which cat should be removed and then have that one be removed in all retrieved pages.
Thanks in advance
https://bugzilla.wikimedia.org/show_bug.cgi?id=55115
--- Comment #1 from Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com --- Logged In: NO
Or what do you think about this:
category.py remove -fromcat:cat1 -removecat:cat2
https://bugzilla.wikimedia.org/show_bug.cgi?id=55115
--- Comment #2 from Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com --- Logged In: YES user_id=47476 Originator: NO
The obvious solution is to separate the action from the page generator. Not something I will do right now, but it prompted me to review the general solution to make a page generator based on command line arguments.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55115
--- Comment #3 from Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com --- Logged In: YES user_id=1107255 Originator: NO
Please let us know if this feature request is still applicable to the current code. If no response is given, the feature request will be denied and the issue will be closed one month from now. This message was added in an effort to reduce the number of open issues on this project. Siebrand
https://bugzilla.wikimedia.org/show_bug.cgi?id=55115
--- Comment #4 from Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com --- Logged In: NO
There is a need to be able to remove one category tag from all pages that are in some other category or one of a set of categories. For instance [[category:people]] or [[category:biography]] on many wikis fills rapidly with pages that belong in one of the subcategories. There needs to be a way to automatically remove the parent category from any page that is in the subcategories, leaving behind only the pages that have no existing subcategorization and need to be sorted manually.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55115
--- Comment #5 from Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com --- Logged In: YES user_id=1963242 Originator: NO
I agree with that last comment.
Request like "Remove from parent category articles which are already in one subcategory" are more and more common.
I have used several ugly hacks to do this, (The only thing you need is the list of articles in both the parent cat and in one of its subcategories, so intersecting two outputs from pagegenerators.py *will* do, but... meh :( ) so that would definitely be a nice script to have :)
https://bugzilla.wikimedia.org/show_bug.cgi?id=55115
Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://sourceforge.net/p/p | |ywikipediabot/feature-reque | |sts/36
https://bugzilla.wikimedia.org/show_bug.cgi?id=55115
Amir Ladsgroup ladsgroup@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |ladsgroup@gmail.com Component|General |category.py
https://bugzilla.wikimedia.org/show_bug.cgi?id=55115
Merlijn van Deen valhallasw@arctus.nl changed:
What |Removed |Added ---------------------------------------------------------------------------- Priority|Unprioritized |Low
pywikipedia-bugs@lists.wikimedia.org