Wikipedia:Bots/Requests for approval/DYKHousekeepingBot
- 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: Shubinator
Automatic or Manually Assisted: Automatic
Programming Language(s): Java, using the JavaWikiBotFramework
Function Overview: Update article talk page DYK tags, tag images that have appeared on Did you know (DYK), and create new DYK archives
Edit period(s): one-time run
Already has a bot flag (Y/N): N
Function Details: The bot will use Template:Did you know revisions to do a number of tasks:
- Place/update article talk page tags
- DYK articles were not tagged in the early days. The bot will add {{dyktalk}} to these talk pages.
- Before June 2007, the article talk page tag was substituted. The bot will replace these with the unsubstituted tag.
- If {{ArticleHistory}} exists on the talk page, the bot won't create a new tag, but add the |dykdate parameter
- The bot will also calculate the number of hits the page got while on DYK, using stats.grok.se.en.
- Added If an article has an unsubstituted {{dyktalk}}, the hook and page views will be added.
- Tag files (mostly images) that have appeared on DYK with {{DYKfile}}. Commons files will be tagged here, like featured pictures.
- Create new archives for DYK by month.
- Since the bot's calculating the number of hits anyways, it will output a list of articles that got over 5000 hits, for WP:DYKSTATS
Discussion
Note: The bot has been discussed at Wikipedia talk:Did you know (link and link). Shubinator (talk) 00:22, 17 May 2009 (UTC)[reply]
- It looks like there's solid support for this. Tricky to trial though. – Quadell (talk) 14:53, 18 May 2009 (UTC)[reply]
Approved for trial (10 edits for function 1.1, 10 edits for f1.2, 10 edits for f1.3, and 10 edits for f2). Please provide a link to the relevant contributions and/or diffs when the trial is complete. – Quadell (talk) 14:53, 18 May 2009 (UTC)[reply]
- Oh, I left one out; I guess this is 1.5 – for articles that have {{dyktalk}}, the bot will add the hook and page views, if available. Should I do 10 edits for this as well? Shubinator (talk) 15:14, 18 May 2009 (UTC)[reply]
- Yes, that sounds good. – Quadell (talk) 15:17, 18 May 2009 (UTC)[reply]
- Trial complete. The edits can be seen at the bot's contribs. The bot was erratic on following redirects on the first run – incorrectly here and here but correctly here and here. It seems to be something in the JWBF's isRedirect() code, since the same page would give different boolean values when I went back. Long story short, I changed the bot to manually follow redirects instead of relying on JWBF. I've also fixed the bug here. The bot created a complete March 2005 archive in its search for the elusive DYK articles with {{ArticleHistory}}. It builds up the archive on a local file, then when it reaches the end of the month it would normally post the archive to Wikipedia:Recent Additions/2005/March. Oh, and an incomplete stats table for April 2009 was also generated in a local file. On a side note, one of the few DYK articles with ArticleHistory in early 2005 was detected on this edit :-) Shubinator (talk) 03:30, 19 May 2009 (UTC)[reply]
A very well-documented trial. Thanks, and I gotta say, these were some of the more interesting bot-trial diffs I've gone through. :) No problems. Approved. for the backlog and logging, and Approved for trial (7 days). Please provide a link to the relevant contributions and/or diffs when the trial is complete. for the as-you-go functionality. – Quadell (talk) 15:07, 19 May 2009 (UTC)[reply]
- Er, as-you-go functionality? It's a one time run; DYKadminBot does the tagging for the current updates. Shubinator (talk) 16:13, 19 May 2009 (UTC)[reply]
- Oh, do you mean the archives and stats? Shubinator (talk) 16:27, 19 May 2009 (UTC)[reply]
- Gah, I was getting this request confused with Wikipedia:Bots/Requests for approval/AnomieBOT 30, which has a continuous function as a component of the request. Sorry for the mixup. – Quadell (talk) 18:09, 19 May 2009 (UTC)[reply]
- What's happening with the DYK hooks when the talk page has {{ArticleHistory}}? I didn't notice it adding any "dyklink" parameters. I also didn't catch the point about the last diff given above (this edit). Finally, I take it the bot is stepping through the DYK archives; if so, how does it handle DYK hooks that now link to disambiguation pages? Gimmetrow 15:47, 19 May 2009 (UTC)[reply]
- The bot has no awareness of the current archives, and therefore can't add the dyklink parameter. After the bot makes the monthly archives, {{ArticleHistory}} could automatically build the link given the date (as we discussed here). Automatic number plate recognition was taken off the template on that diff and therefore tagged by ArticleHistory (the bot goes by hook removal, and intentionally won't recognize one hook that's pulled (presumably because of a problem)). The coincidental part is the user on that diff. Right now the bot doesn't detect dab pages, so the talk page would be tagged. I can have it check for dab templates on the article based on MediaWiki:Disambiguationspage. Shubinator (talk) 16:11, 19 May 2009 (UTC)[reply]
Approved. All tasks. Further discussion on archive methods can go to User talk:DYKHousekeepingBot. – Quadell (talk) 18:09, 19 May 2009 (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.