Operator: GreenC ( talk · contribs · SUL · edit count · logs · page moves · block log · rights log · ANI search)
Time filed: 03:12, Thursday, April 15, 2021 ( UTC)
Automatic, Supervised, or Manual: automatic
Programming language(s): GNU Awk and BotWikiAwk
Source code available: User:GreenC_bot/Job_20
Function overview: peerr removes the template {{
Peer review}}
from talk pages where no longer needed. ie. the template was added more than 7 days ago indicating the peer review processes has stalled or was not properly initiated.
Links to relevant discussions (where appropriate): User_talk:GreenC#Bot_functionality_request & Template_talk:Peer_review#Bot_task
Edit period(s): Daily
Estimated number of pages affected: 0-5 per day month
Exclusion compliant (Yes/No): Yes
Already has a bot flag (Yes/No): Yes
Function details: Long description: As part of the peer review process, {{
Peer review}}
are added to article talk pages, but sometimes the process is not done correctly or stalls. A tracking cat was created to catch these (
Category:Peer review requests not opened), but still requires manual removal of the template after waiting some time. It is safe to say if the template has been in place for more than 7 days without indication the rest of the processes has been done, the template can be removed. To automate: once a day, the bot retrieves the list of page names in the tracking category, along with today's date ("added date"), and adds it to a text file. If the page name is already in the text file don't add it again, rather check if it has been more than 7 days since the added date. If so, verify there is a corresponding peer review page called
Wikipedia:Peer review/PAGENAME/archiveX and if not then remove the Peer review template, and remove the text file entry. Likewise if the page name is in the text file but not in the tracking category then remove the page name from the file.