|
View:
New views
5 Messages
—
Rating Filter:
Alert me
|
|
|
Category.pyHello, 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@... https://lists.wikimedia.org/mailman/listinfo/wikibots-l |
|
|
|
|
|
Re: Category.pyIt looks like you want to rename category village and district X to vilage in district X.
--- On Sun, 10/8/08, Pietrodn <powerpdn@...> wrote: > From: Pietrodn <powerpdn@...> > Subject: Re: [Wikibots-l] Category.py > To: wikibots-l@... > 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@... > > > Da: Jan Dudík <jan.dudik@...> > > Data: 10 agosto 2008 13:10:43 GMT+02:00 > > A: "wikibots-l@..." > <wikibots-l@...> > > Oggetto: [Wikibots-l] Category.py > > Rispondi a: jan.dudik@..., Wikimedia bot editors > discussion <wikibots-l@... > > > > > > > > > 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@... > 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 _______________________________________________ Wikibots-l mailing list Wikibots-l@... https://lists.wikimedia.org/mailman/listinfo/wikibots-l |
|
|
Re: Category.pyIn 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@...> 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@... > >> Da: Jan Dudík <jan.dudik@...> >> Data: 10 agosto 2008 13:10:43 GMT+02:00 >> A: "wikibots-l@..." <wikibots-l@...> >> Oggetto: [Wikibots-l] Category.py >> Rispondi a: jan.dudik@..., Wikimedia bot editors discussion >> <wikibots-l@... >> > >> >> >> 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@... > 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@... https://lists.wikimedia.org/mailman/listinfo/wikibots-l |
|
|
Re: Category.pyIf 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@...>: > 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@...> > 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@... >> >>> Da: Jan Dudík <jan.dudik@...> >>> Data: 10 agosto 2008 13:10:43 GMT+02:00 >>> A: "wikibots-l@..." <wikibots-l@...> >>> Oggetto: [Wikibots-l] Category.py >>> Rispondi a: jan.dudik@..., Wikimedia bot editors discussion >>> <wikibots-l@... >>> > >>> >>> >>> 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@... >> 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@... > https://lists.wikimedia.org/mailman/listinfo/wikibots-l > -- Nicolas Dumazet — NicDumZ [ nɪk.d̪ymz ] pywikipedia & mediawiki _______________________________________________ Wikibots-l mailing list Wikibots-l@... https://lists.wikimedia.org/mailman/listinfo/wikibots-l |
| Free embeddable forum powered by Nabble | Forum Help |