Wikipedia:Bots/Requests for approval/YpnBot 2
- The following discussion is an archived debate. Please do not modify it. To request review of this BRFA, please start a new section at WT:BRFA. The result of the discussion was Approved.
Operator: Ypnypn (talk · contribs · SUL · edit count · logs · page moves · block log · rights log · ANI search)
Time filed: 19:31, Monday February 10, 2014 (UTC)
Automatic, Supervised, or Manual: Automatic
Programming language(s): Python (PyWikiBot)
Source code available: here (with some changes)
Function overview: Complementing the task in my previous BRFA, corrects and removes the template {{VA}} when necessary.
Links to relevant discussions (where appropriate):
Edit period(s): One time run, followed by occasional (monthly or so) smaller runs
Estimated number of pages affected: 1000 or so on first run, a few dozen per month afterwards
Exclusion compliant (Yes/No): Yes
Already has a bot flag (Yes/No): Yes
Function details: YpnBot's first task was to add the template {{VA}} to articles listed in WP:VA and its subpages. This task is to remove the template when necessary, as well as to update its parameters.
The bot starts by going through the pages using the same logic as the previous task, but instead of editing it stores the correct parameters in a "dictionary". It then goes through Category:All Wikipedia vital articles and checks the pages against the dictionary. If the page isn't there, the template is removed. Otherwise, if any parameters are incorrect, the template is replaced by one containing the correct parameters.
Discussion
[edit]{{BAGAssistanceNeeded}} -- Ypnypn (talk) 22:17, 17 February 2014 (UTC)[reply]
Approved for trial (30 edits). Please provide a link to the relevant contributions and/or diffs when the trial is complete. If I understand correctly, this removes {{VA}} when the page is no longer vital and it updates |level=
|topic=
and |class=
if template values don't match actual values? — HELLKNOWZ ▎TALK 12:56, 19 February 2014 (UTC)[reply]
- Exactly. Unfortunately, my computer just broke (about an hour after my request for assistance), so it may be a week or more until I get this done. – Ypnypn (talk) 20:06, 19 February 2014 (UTC)[reply]
- Trial complete. The thirty edits are here. The first eleven were removals; all worked as expected. The next ten were updates to the templates. Some of these were incorrect (now reverted) due to a bug which is now fixed. The final nine updates worked correctly. -- Ypnypn (talk) 17:54, 3 March 2014 (UTC)[reply]
Approved. Edits look good, don't see any issues. — HELLKNOWZ ▎TALK 21:48, 3 March 2014 (UTC)[reply]
- The above discussion is preserved as an archive of the debate. Please do not modify it. To request review of this BRFA, please start a new section at WT:BRFA.