This user account is a bot operated by AnonEMouse (talk). It is used to make repetitive automated or semi-automated edits that would be extremely tedious to do manually, in accordance with the bot policy. This bot does not yet have the approval of the community, or approval has been withdrawn or expired, and therefore shouldn't be making edits that appear to be unassisted except in the operator's or its own user and user talk space. Administrators: if this bot is making edits that appear to be unassisted to pages not in the operator's or its own userspace, please block it. |
Purpose
editTo track Wikipedia:Articles for Deletion debates for specific types of articles.
The intention is to, in an automated fashion, maintain Afdl (Articles for deletion list?) pages, such as the already existing ones currently maintained manually by several WikiProjects:
- Wikipedia:WikiProject Georgia Tech/Deletion
- Wikipedia:WikiProject Macintosh/Deletion
- Wikipedia:WikiProject Pornography/Deletion
- Wikipedia:WikiProject Video games/Deletion
- Wikipedia:WikiProject Warcraft/Deletion
- Wikipedia:WikiProject Webcomics/Deletion
Project members, or other users interested in a particular group of articles would then check the relevant Afd list page, and get a list of currently open and recently closed Afd debates dealing with only those articles.
The bot will run with human (er... muscine) oversight the first few times, then run nightly, without supervision, when it has been shown to be harmless and bugfree. It will maintain the lists on the Afdl pages, and will add
- Note: This debate has been added to the <appropriate list of deletions>. AfdlBot <date-time>
to the Afd debates themselves.
A representative for any given project needs to agree to put their Afdl page under AfdlBot's automated supervision. If anyone wants their project removed, it will be removed. Wikipedia:Consensus only, as always.
Configuration
editList the following parameters in a new Section on the User:AfdlBot/Configuration page:
- AFD List: The Afdl page to maintain (a Wikilink)
- Talk templates: Templates on the Article talk page that identify it as an article of interest (a list of Wikilinks to the Templates, all on one line)
- Article templates: Templates on Article itself that identify it as an article of interest (a list of Wikilinks to the Templates, all on one line)
- Article categories: Article Categories that identify the article as an article of interest (a list of Wikilinks to the categories, all on one line. Remember to put an additional leading colon before the word Category inside the wikilink.)
- Talk categories: Article Categories on the Article talk page that identify the article as an article of interest (a list of Wikilinks to the categories, all on one line. Remember to put an additional leading colon before the word Category inside the wikilink.)
Example configuration section
edit== [[Wikipedia:WikiProject Georgia Tech]] == * AFD List: [[Wikipedia:WikiProject Georgia Tech/Deletion]] * Talk templates: [[Template:WikiProject Georgia Tech]] * Article templates: [[Template:Georgia Tech Navbox]] * Article categories: [[:Category:Georgia Institute of Technology]], [[:Category:Georgia Institute of Technology people]]
Source Code
editPython, Meta:Pywikipedia framework. Open Source as long as attribution is given. Current program will always be available at User:AfdlBot/Source.
The basic algorithm is:
- Login
- Read the configuration page (hardcoded)
- From the configuration, read the Afdl pages, to see what Afds are already listed, checking the open ones to see if they have closed, and removing closed listings over, say 30 days old
- Read the last N (say 12) Wikipedia:Articles for deletion Log pages, starting with the current date (in theory, Afds should close within 5 days, in practice many stay open longer)
- For each Afd on each log page, read to all the article links mentioned (because some Afds may apply to multiple articles) and see if
- that article is nominated for deletion at this Afd debate, and
- that article is one any project on the configuration page is interested in, by looking for templates or categories
- Add any such Afds, with creation date (also close date if any, result if any) to the appropriate list for each project, sorted by open or closed, then by start date
- Mark the Afds as added to the appropriate Afdl list, that are not so marked already