Just wanted to share my solution with everyone else (I use AutoWikiBrowser)

1. I used Benjamin Lees advice about the following api call:

api.php?action=query&list=
querypage&qppage=Wantedcategories&qplimit=5000

2. I extracted just the category names and saved them is a text file.

3. I logged in to my wiki on AWB, went to the "More" tab, then added some
appended text. I then went to the skip page and changed the "Page" settings
to "doesn't care" (this is important, otherwise the batch edits will fail
since the page doesn't exist)

4. Turned on AWB, set it to bot settings, got myself a cup of coffee and a
nice book to read while the bot fills in the blanks.

5. Repeated steps 1 through 3 as often as needed until the rest of the
pages were filled in.

And that's it. This advice will have to modified if you don't use AWB, but
it otherwise works fine for me.


On Sat, Nov 2, 2013 at 2:27 PM, Geth N7 <[email protected]> wrote:

> That sounds like it should work. Thanks!
>
>
> On Sat, Nov 2, 2013 at 2:08 PM, Benjamin Lees <[email protected]>wrote:
>
>> api.php?action=query&list=querypage&qppage=Wantedcategories&qplimit=5000
>> will give you the list in a format you can readily convert to just the
>> names.
>>
>> You can then loop over the list of categories in your programming language
>> of choice and run edit.php once for each category.
>>
>>
>>
>>
>> On Sat, Nov 2, 2013 at 12:44 PM, Geth N7 <[email protected]> wrote:
>>
>> > Well, correction: I think edit.php is the route I plan to go to do this,
>> > but how would I extract a list of every wanted category so all the pages
>> > could be converted as a batch with whatever wikitext I desire?
>> >
>> > I followed the instructions on the
>> > https://www.mediawiki.org/wiki/Manual:Edit.php page, but I'm not sure
>> how
>> > (if possible) to apply a "wildcard" to the Category: so that it will
>> batch
>> > create category description pages for every category.
>> >
>> >
>> > On Sat, Nov 2, 2013 at 11:22 AM, Geth N7 <[email protected]>
>> wrote:
>> >
>> > > Thanks! That's exactly what I needed to know.
>> > >
>> > >
>> > > On Sat, Nov 2, 2013 at 10:30 AM, Benjamin Lees <[email protected]
>> > >wrote:
>> > >
>> > >> It's nothing fancy, but Special:WantedCategories (or, better, its API
>> > >> equivalent) will give you the list, and the edit.php maintenance
>> script,
>> > >> Pywikibot, or the bot framework of your choice will let you create
>> pages
>> > >> from the list.
>> > >>
>> > >>
>> > >> On Fri, Nov 1, 2013 at 11:48 PM, Geth N7 <[email protected]>
>> > wrote:
>> > >>
>> > >> > What I want to do is mass create category description pages for
>> all of
>> > >> > these wanted categories.
>> > >> >
>> > >> > The text would simply be a link to a "master category" that they
>> would
>> > >> all
>> > >> > fall under (for organization purposes).
>> > >> >
>> > >> > My problem is that bot programs (like AutoWikibrowser) don't seem
>> to
>> > >> have
>> > >> > the capability to create category description pages since the pages
>> > >> don't
>> > >> > exist, and since I have thousands of pages to create, I really
>> wanted
>> > to
>> > >> > add text to these new pages in bulk, but I'm at a loss for how to
>> > create
>> > >> > pages in bulk with preselected text.
>> > >> >
>> > >> >
>> > >> > On Fri, Nov 1, 2013 at 9:57 PM, John <[email protected]>
>> > wrote:
>> > >> >
>> > >> > > Depends on what kind of text you want to create the page with.
>> > >> > >
>> > >> > > On Fri, Nov 1, 2013 at 10:55 PM, Geth N7 <
>> [email protected]>
>> > >> > wrote:
>> > >> > >
>> > >> > > > From what I understand, a category doesn't exist until the page
>> > for
>> > >> the
>> > >> > > > category is edited, so even if there are categories listed on a
>> > >> page,
>> > >> > > > unless those categories have been created, they do not actually
>> > >> exist
>> > >> > > until
>> > >> > > > their description pages have been edited.
>> > >> > > >
>> > >> > > > I ask this because I'm in charge of wiki that has a lot of
>> blank
>> > >> > > categories
>> > >> > > > (it was created from an XML dump made from content from another
>> > wiki
>> > >> > > engine
>> > >> > > > that did not support categories in the MediaWiki sense), and I
>> > would
>> > >> > like
>> > >> > > > to mass add some text to all of these "wanted categories" so
>> they
>> > >> can
>> > >> > be
>> > >> > > > properly indexed.
>> > >> > > >
>> > >> > > > Is there a way to do this, or will I have to edit all these
>> > >> categories
>> > >> > > > manually?
>> > >> > > > _______________________________________________
>> > >> > > > MediaWiki-l mailing list
>> > >> > > > [email protected]
>> > >> > > > https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
>> > >> > > >
>> > >> > > _______________________________________________
>> > >> > > MediaWiki-l mailing list
>> > >> > > [email protected]
>> > >> > > https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
>> > >> > >
>> > >> > _______________________________________________
>> > >> > MediaWiki-l mailing list
>> > >> > [email protected]
>> > >> > https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
>> > >> >
>> > >> _______________________________________________
>> > >> MediaWiki-l mailing list
>> > >> [email protected]
>> > >> https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
>> > >>
>> > >
>> > >
>> > _______________________________________________
>> > MediaWiki-l mailing list
>> > [email protected]
>> > https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
>> >
>> _______________________________________________
>> MediaWiki-l mailing list
>> [email protected]
>> https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
>>
>
>
_______________________________________________
MediaWiki-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

Reply via email to