If I understand well, you're trying to make intersection of categories.
If page in A & B, remove cat A and cat B, and add cat C.
Well, there's no common way that I know to do that using category.py .
You would have to write your custom script, or to do it using
replace.py, and some intricated regexes.
2008/8/11 Jan Dudík <jan.dudik(a)gmail.com>om>:
In the articles are now
[[Category:District X]]
[[Category:Villages]]
I want to use tidy (because in category District X are another articles
too)
and get
[[Category:Villages in District X]]
I can do it by bot for two edits, but I want to do in in one edit.
Dne Sun, 10 Aug 2008 19:09:20 +0200 Pietrodn <powerpdn(a)gmail.com>
napsal/-a:
I can't understand what you want to do. Do
you want to remove the
category links from the articles? In this case, the syntax is:
python category.py remove <category1> <category2>
For the second part of your request ("and add new category Villages in
District X"), do you want to add a new subcategory "Villages" in
category "District X"? If I understood, you needn't a bot.
Best regards
Pietrodn
powerpdn(a)gmail.com
Da: Jan Dudík <jan.dudik(a)gmail.com>
Data: 10 agosto 2008 13:10:43 GMT+02:00
A: "wikibots-l(a)lists.wikimedia.org" <wikibots-l(a)lists.wikimedia.org>
Oggetto: [Wikibots-l] Category.py
Rispondi a: jan.dudik(a)volny.cz, Wikimedia bot editors discussion
<wikibots-l(a)lists.wikimedia.org
Hello, I have question about category.py
How can I do this situation:
There are category Villages and District X. I want to remove both
categories and add new category Villages in District X.
How can I do it?
JAn
--
Tato zpráva byla vytvořena převratným poštovním klientem Opery:
http://www.opera.com
/mail/
_______________________________________________
Wikibots-l mailing list
Wikibots-l(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibots-l
--
Tato zpráva byla vytvořena převratným poštovním klientem Opery:
http://www.opera.com/mail/
_______________________________________________
Wikibots-l mailing list
Wikibots-l(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibots-l
--
Nicolas Dumazet — NicDumZ [ nɪk.d̪ymz ]
pywikipedia & mediawiki