Wikipedia:Bots/Requests for approval/PotatoBot 3
- 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: Anypodetos (talk · contribs)
Automatic or Manually assisted: Automatic, unsupervised
Programming language(s): Python, PyWikipedia
Source code available: Yes
Function overview: Creates redirects from ATC codes to drug pages (ATC code A01AA01 → Sodium fluoride). Adds {{anchor}}s to section headers in ATC lists (ATC code A01 etc.) and creates redirects to them (ATC code A01A → ATC code A01#A01A).
Links to relevant discussions (where appropriate): Wikipedia talk:WikiProject Pharmacology/Archive 3#Can't search for ATC codes, no opposition at Wikipedia talk:WikiProject Pharmacology#Can't search for ATC codes
Edit period(s): Once a year (after the ATC code updates); additional runs if necessary
Estimated number of pages affected: Edits ~115 ATC lists; creates ~9460 redirects (initially)
Exclusion compliant (Y/N): Yes
Already has a bot flag (Y/N): Yes
Function details: ATC codes are obtained from the ATC lists. Only lines of the type :(ATC code) (Article)
and :(ATC code) (Piped link)
are processed at the moment, but I intend to use the output of the initial run for refining the search logic. ATCvet code redirects are created as well if applicable (ATCvet code QA01AA01 → Sodium fluoride). Anchors are added like so: =={{anchor|A01A}}A01A Stomatological preparations==
.
A template {{R from ATC code}} is placed in the redirects. I will create it (along with the Category:Redirects from ATC codes) before starting the bot. Double redirects are resolved; redirects to nonexistent pages are omitted; no existing pages are overwritten.
The bot also cross-checks the ATC codes from the lists against those in drugboxes and chemboxes, and logs differences to its user space.
Discussion
[edit]- This looks like a safe task to run. I don't see a reason not to trial it tomorrow. MBisanz talk 03:04, 16 June 2010 (UTC)[reply]
{{BAGAssistanceNeeded}} --ἀνυπόδητος (talk) 13:31, 21 June 2010 (UTC)[reply]
Approved for trial (45 edits). Please provide a link to the relevant contributions and/or diffs when the trial is complete. — The Earwig (talk) 20:14, 21 June 2010 (UTC)[reply]
- Trial complete. See Special:Contributions/PotatoBot and Category:Redirects from ATC codes. Looks okay. --ἀνυπόδητος (talk) 17:22, 22 June 2010 (UTC)[reply]
- Approved. MBisanz talk 02:29, 23 June 2010 (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.