Wikipedia:Bots/Requests for approval/StatisticianBot
- 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: Dvandersluis
Automatic or Manually Assisted: Automatic, supervised
Programming Language(s): PHP, using self-made framework
Function Summary: Updates miscellaneous, statistic-based pages.
Edit period(s) (e.g. Continuous, daily, one time run): daily
Edit rate requested: 1 edit per day
Already has a bot flag (Y/N): N
Function Details: There are two specific things I am requesting for approval here:
- Transfer task Category:Cleanup by month updating from User:CbmBOT to this one (which would be an umbrella bot for all statistics-related bot tasks I oversee). CbmBOT has been in use since July 2006, and was approved by B/RFA here. This would effectively deactivate CbmBOT.
- New task Creating a statistical report of Wikipedia:Good article candidates, as per request at User:Mike Christie/GACbot and Wikipedia:Bot requests/Archive 12#GA candidates count. This task (and all its subtasks) will require only three "hits" on the Wikipedia server: one to retrieve the GAC page, a second to write a results page after processing, and a third to update Wikipedia:Good article candidates/backlog/items (request added to specification as of 20:53, 26 April 2007 (UTC)). The subtasks are as follows:
- Create a list of the ten oldest nominations, and update Wikipedia:Good article candidates/backlog/items with the oldest five.
- Create a daily backlog report, of the form "<date> <time> -- <n> nominations outstanding; <n> held ; <n> under review; <n> not reviewed".
- Create an exception report, showing the improper, malformed, or incorrect nominations.
- Create a summary report of nominations by category.
Discussion
[edit]- Question While discussing the operation of this bot with the requester, we noticed that there are a number of pages that contain (currently, manually updated) statistics about GAC (Template:WikiProjectGATasks and Wikipedia:Good article candidates/backlog/items, to start). I had the idea that, rather than updating each of those pages individually whenever the bot runs, it would just update its own reporting page (which would be done anyways), but add in a <includeonly> section of the page that would contain a #switch: ParserFunction and allow for the results page to be transcluded. What I mean is as follows:
#On the report page, called WP:GAC/R for example purposes <includeonly> {{#switch:{{lc: {{{1|}}}}} |oldest5 = [[oldest article 1]], [[oldest article 2]], ... |num_candidates = X |etc.... }} </includeonly> <noinclude> ... report data ... </noinclude> #On a page that needs GAC stats Number of GAC candidates: {{WP:GAC/R|num_candidates}}
- Is this idea feasible? Would doing it this way mean that the entire page would be transcluded (even if it is not shown) or just the non-noinclude parts? (in which case, would it be better to create a second page that is just for the transclusions?) Or is it better to just update all the individual templates/etc. that need the data? —Daniel Vandersluis(talk) 21:23, 26 April 2007 (UTC)[reply]
- Anything on a page apart from content transcluded within a noinclude section (which generally is no content, unless it's a template using the /doc pattern) counts towards the server load if that page is transcluded; don't put large noinclude sections on pages designed to be transcluded (like the pre'd example above). Updating a separate page designed to be transcluded would be fine. --ais523 12:58, 27 April 2007 (UTC)
- Okay, thanks for letting me know. I guess I will just create a separate transclusion page instead. —Daniel Vandersluis(talk) 14:22, 1 May 2007 (UTC)[reply]
- Anything on a page apart from content transcluded within a noinclude section (which generally is no content, unless it's a template using the /doc pattern) counts towards the server load if that page is transcluded; don't put large noinclude sections on pages designed to be transcluded (like the pre'd example above). Updating a separate page designed to be transcluded would be fine. --ais523 12:58, 27 April 2007 (UTC)
Approved for trial. Please provide a link to the relevant contributions and/or diffs when the trial is complete. 3 days operation on the good article task (keep the other one on hold for now). Martinp23 09:54, 6 May 2007 (UTC)[reply]
Consider the other task speedily approved. Martinp23 10:10, 6 May 2007 (UTC)[reply]
- Thank you for approving this for trials. I will most likely be away until Wednesday, and will start the trials then (if not sooner). —Daniel Vandersluis(talk) 14:19, 7 May 2007 (UTC)[reply]
- Diffs for 9 May 2007:
- Wikipedia:Good article candidates/Report (page create)
- Template:GACstats (page create + minor manual fixes that have been fixed in code)
- (Wikipedia:Good article candidates/backlog/items
- Diffs for 10 May 2007:
- Diffs for 11 May 2007:
That should do it for the trials. —Daniel Vandersluis(talk) 16:59, 11 May 2007 (UTC)[reply]
- Approved. ST47Talk 11:17, 12 May 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.