The following discussion is an archived debate. Please do not modify it. Subsequent comments should be made in a new section. The result of the discussion was Approved.

Operator: Happymelon

Automatic or Manually Assisted: Automatic, supervised

Programming Language(s): Python, using pywikipedia

Function Summary: Maintenance of WikiProject member lists, as documented

Edit period(s) (e.g. Continuous, daily, one time run): ~Fortnightly

Edit rate requested: One per Run (operation consists mainly of page reads)

Already has a bot flag (Y/N): N

Function Details: See User:MelonBot/Member lists

Discussion[edit]

How many page reads does it take? MaxSem(Han shot first!) 20:00, 16 December 2007 (UTC)[reply]

One to construct each list, then one for each page on the "pages" list, then of course one to complete the final edit. For example, the League of Copyeditors has 377 users on its members page, and 260 pages to watch (Wikipedia:WikiProject League of Copyeditors, its talk page, and all subpages and sub-talk-pages). So for this, 263.
I have three methods of constructing each list: Links on page, Whatlinkshere, and Subpages. Since many of the LOCE pages are inactive archives, execution could be streamlined by creating an index of all LOCE pages to monitor, and changing the constructor to "LinksOnPage". But 263 is not an excessive number IMO. Happymelon 20:28, 16 December 2007 (UTC)[reply]
Would it do this for more WikiProjects? Would a coordinator have to ask? <DREAMAFTER> <TALK> 01:11, 17 December 2007 (UTC)[reply]
Yes and yes. As long as the Watchlist has a member list and a watchlist, or uses a subpage setup like the LOCE, it can be done easily. Alternatively, they could just ask for "Whatlinkshere" for their project banner. But yes, other projects can easily get in on this - I just have to add five lines to a config file. Happymelon 09:25, 17 December 2007 (UTC)[reply]
Approved for trial (2-3 edits). Please provide a link to the relevant contributions and/or diffs when the trial is complete. Let's see the results for a couple of wikiprojects. MaxSem(Han shot first!) 14:08, 17 December 2007 (UTC)[reply]

I have completed three trials:

Approved for trial (6 edits). Please provide a link to the relevant contributions and/or diffs when the trial is complete.This isn't really an indicator of which members are active. Most members (Up to 90%) are out editing the main space, and might only edit the talk page of the project about once a month. Anyway, I'll approve you for 6 more edits untill you get the ((User)) thing fixed but you won't have to use all of them — consider this a "development" phase. I don't think it's ready for full approval untill you fix the template thing--Phoenix-wiki talk · contribs 20:57, 17 December 2007 (UTC)[reply]
The latest run for Wikipedia:HP has fixed the ((user)) bug. I've added a new syntax for "Whattranscludesthis", which takes only template transclusions, but expands to include associated talk page pairs. For instance, the latest WPHP run checked all talk pages with the ((WPHP)) banner, and all associated mainspace pages. The data now appears to be correct. I'm going to sleep on any possible ways to reduce the runtime and server load (that last run took half an hour to complete with appropriate throttling). Happymelon 22:52, 17 December 2007 (UTC)[reply]
Wouldn't it be more useful if you numbered the members?--Phoenix-wiki talk · contribs 22:54, 17 December 2007 (UTC)[reply]
One problem: your bot can't handle links to subpages. MaxSem(Han shot first!) 09:01, 18 December 2007 (UTC)[reply]
It couldn't before, it can now. It also now avoids duplications - my username is on /LOCE four times!! However the latest run on WPHP appears to be pretty much spot on. Happymelon 10:44, 18 December 2007 (UTC)[reply]
Okay, do one more edit to make sure and link it here, then I'll aprove you ;-)--Phoenix-wiki talk · contribs 17:07, 18 December 2007 (UTC)[reply]
as you wish. This appears to be correct - no erorrs that I can detect, and the right people seem to be at the bottom. I think it's good to go. Happymelon 17:15, 18 December 2007 (UTC)[reply]
 Approved. (You wouldn't mind running it on Wikipedia:HIST, would you?) :-D--Phoenix-wiki talk · contribs 17:17, 18 December 2007 (UTC)[reply]
Sure, no problem. Just don't ask for Wikipedia:WPBIO - running through 455,000 articles is not my idea of fun! Happymelon 17:25, 18 December 2007 (UTC)[reply]
The above discussion is preserved as an archive of the debate. Please do not modify it. Subsequent comments should be made in a new section.