Automatic or Manually Assisted: automatic, unsupervised
Programming Language(s): Perl
Function Summary: Close discussions at Wikipedia:IFD where and admin forgot, and some other tasks there.
Edit period(s) (e.g. Continuous, daily, one time run): continuous, hourly
Already has a bot flag (Y/N): Y
Function Details: Per request, the bot will do the following at Wikipedia:IFD:
The source is available
here. It parses the page into sections, extracts the ====
sections, and pulls the image out of the section title. Then it queries the API imageinfo to determine if the imagerepository
is local, Commons, or empty; downloads the most recent deletion log entry for the image if necessary; and takes action appropriately. It does all this hourly for all recent IFD subpages (where "recent" is defined as "since the earliest IFD subpage where I saw an unclosed discussion the previous hour", with the initial run using Oct 31, 2008).
The bot currently detects whether a section is already closed by looking for either the unsubsted {{
ifd top}}
or <div class="boilerplate metadata vfd xfd-closed"
at the beginning of the section, just under the header. If any section (including section 0) contains either of those two markers anyplace other than immediately after the ====
section header, the bot will complain on its own talk page and not make any edit to the affected IFD page. Every edit summary also contains a link to the task's shutoff page, in case the bot is doing anything wrong.
Anomie
⚔
03:44, 16 November 2008 (UTC)
reply
{{ BAGAssistanceNeeded}}
Approved. -- Chris 08:27, 1 December 2008 (UTC) reply
Automatic or Manually Assisted: automatic, unsupervised
Programming Language(s): Perl
Function Summary: Close discussions at Wikipedia:IFD where and admin forgot, and some other tasks there.
Edit period(s) (e.g. Continuous, daily, one time run): continuous, hourly
Already has a bot flag (Y/N): Y
Function Details: Per request, the bot will do the following at Wikipedia:IFD:
The source is available
here. It parses the page into sections, extracts the ====
sections, and pulls the image out of the section title. Then it queries the API imageinfo to determine if the imagerepository
is local, Commons, or empty; downloads the most recent deletion log entry for the image if necessary; and takes action appropriately. It does all this hourly for all recent IFD subpages (where "recent" is defined as "since the earliest IFD subpage where I saw an unclosed discussion the previous hour", with the initial run using Oct 31, 2008).
The bot currently detects whether a section is already closed by looking for either the unsubsted {{
ifd top}}
or <div class="boilerplate metadata vfd xfd-closed"
at the beginning of the section, just under the header. If any section (including section 0) contains either of those two markers anyplace other than immediately after the ====
section header, the bot will complain on its own talk page and not make any edit to the affected IFD page. Every edit summary also contains a link to the task's shutoff page, in case the bot is doing anything wrong.
Anomie
⚔
03:44, 16 November 2008 (UTC)
reply
{{ BAGAssistanceNeeded}}
Approved. -- Chris 08:27, 1 December 2008 (UTC) reply