Wikipedia:Bots/Requests for approval/RelistBot
Automatic or Manually Assisted: Automatic
Programming Language(s): Perl
Function Summary: Relists AfD's (see {{relist}}) upon being triggered to do so by an administrator.
Edit period(s) (e.g. Continuous, daily, one time run): continuous, set to run once every five minutes.
Already has a bot flag (Y/N): N
Function Details: Relisting AfD's is one of the most tedious tasks when clearing out an AfD log for a particular day. It involves placing {{relist}} on the discussion page itself, loading the massive daily log page, detranscluding the discussion, and then retranscluding the discussion on the current daily log page. As such, I plan to develop a bot which will do all these steps for administrators, which will certainly assist those on slow connections who struggle to load the daily log page.
For this example, assume the page Storm was nominated for AfD on June 2, and is being relisted today, June 8. The methodology is as follows:
- Step 1: Administrators will edit User:RelistBot/relist.js and paste the following:
- *[[Wikipedia:Articles for deletion/Storm]] ~~~~
- ...below a triggerline.
- Step 2: Every five minutes, the bot will run and parse lines such as the one above. It will then edit User:RelistBot/relist.js to remove the line added by the administrator, with the edit summary "Relisting [[Wikipedia:Articles for deletion/Storm]]".
- Step 3: The bot will then use Special:Whatlinkshere to identify which daily AfD log the page is on; in this case, Wikipedia:Articles for deletion/Log/2008 June 2. It will then edit that page and comment out the transclusion, as so:
- <!-- {{Wikipedia:Articles for deletion/Storm}} -->
- ...using the edit summary "Relisting [[Wikipedia:Articles for deletion/Storm]]"
- Step 4: The bot will then go to today's log (in this example, Wikipedia:Articles for deletion/Log/2008 June 6), and add the following line to the bottom of the page:
- {{Wikipedia:Articles for deletion/Storm}}
- ...with the edit summary "Relisting [[Wikipedia:Articles for deletion/Storm]]".
- Step 5: The bot will edit Wikipedia:Articles for deletion/Storm itself, adding the following to the bottom of the page:
- {{subst:relist|<sig>}}
- ...where "<sig>" is the signature and timestamp which was left by the administrator on User:RelistBot/relist.js (see Step 1); using the edit summary "Relisted".
- Step 6: The bot will then add a listing to User:RelistBot/Archive/cyear, with "cyear" being the current year, ie. 2008, with the following line:
- [[Wikipedia:Articles for deletion/Storm]] relisted by <sig>
- ...with edit summary "Adding [[Wikipedia:Articles for deletion/Storm]] listing to archive".