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@gmail.com
Da: Jan Dudík jan.dudik@gmail.com Data: 10 agosto 2008 13:10:43 GMT+02:00 A: "wikibots-l@lists.wikimedia.org" wikibots-l@lists.wikimedia.org Oggetto: [Wikibots-l] Category.py Rispondi a: jan.dudik@volny.cz, Wikimedia bot editors discussion <wikibots-l@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/
It looks like you want to rename category village and district X to vilage in district X.
--- On Sun, 10/8/08, Pietrodn powerpdn@gmail.com wrote:
From: Pietrodn powerpdn@gmail.com Subject: Re: [Wikibots-l] Category.py To: wikibots-l@lists.wikimedia.org Date: Sunday, 10 August, 2008, 7:09 PM 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@gmail.com
Da: Jan Dudík jan.dudik@gmail.com Data: 10 agosto 2008 13:10:43 GMT+02:00 A: "wikibots-l@lists.wikimedia.org"
wikibots-l@lists.wikimedia.org
Oggetto: [Wikibots-l] Category.py Rispondi a: jan.dudik@volny.cz, Wikimedia bot editors
discussion <wikibots-l@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@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibots-l
__________________________________________________________ Not happy with your email address?. Get the one you really want - millions of new email addresses available now at Yahoo! http://uk.docs.yahoo.com/ymail/new.html
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@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@gmail.com
Da: Jan Dudík jan.dudik@gmail.com Data: 10 agosto 2008 13:10:43 GMT+02:00 A: "wikibots-l@lists.wikimedia.org" wikibots-l@lists.wikimedia.org Oggetto: [Wikibots-l] Category.py Rispondi a: jan.dudik@volny.cz, Wikimedia bot editors discussion <wikibots-l@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@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibots-l
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@gmail.com:
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@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@gmail.com
Da: Jan Dudík jan.dudik@gmail.com Data: 10 agosto 2008 13:10:43 GMT+02:00 A: "wikibots-l@lists.wikimedia.org" wikibots-l@lists.wikimedia.org Oggetto: [Wikibots-l] Category.py Rispondi a: jan.dudik@volny.cz, Wikimedia bot editors discussion <wikibots-l@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@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@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibots-l
wikibots-l@lists.wikimedia.org