Wikipedia:Bots/Requests for approval/CitationCleanerBot 4

CitationCleanerBot 4

[[User:CitationCleanerBot|CitationCleanerBot 4]]

{{Newbot|CitationCleanerBot|4}}

Operator: {{botop|Headbomb}}

Time filed: 01:00, Tuesday, July 31, 2018 (UTC)

Automatic, Supervised, or Manual: Automatic (Mainspace/Draft/File/Category); Semi-automatic (other namespaces). Headbomb {t · c · p · b} 13:06, 31 July 2018 (UTC)

Programming language(s): AWB

Source code available:

  • Find \[?PubMed\]?\s+PMID:?\s+(\d+){{PMID|$1}}
  • Find PMID:?\s+(\d+){{PMID|$1}}
  • Find \[?PubMed\]?\s+(Central)?\s*PMCID:?\s+(PMC)?(\d+){{PMC|$3}}
  • Find PMCID:?\s+(PMC)?(\d+){{PMC|$2}}
  • Skips external links, nowiki tags, etc... on automated runs

Function overview: Create links to PMID/PMC identifiers. This is the same idea as Wikipedia:Bots/Requests for approval/CitationCleanerBot 2, but in a straight jacket for easier review/approval.

Links to relevant discussions (where appropriate): See Wikipedia:Bots/Requests for approval/CitationCleanerBot 2 and links therein.

Edit period(s): Whenever I start the bot, a few times per week.

Estimated number of pages affected: ~1300

Namespace(s): All

Exclusion compliant (Yes/No): Yes

Function details: Creating links to PMID/PMC identifiers, e.g. [https://en.wikipedia.org/w/index.php?title=Draft%3AJames_Neil_Gilliam%2C_M.D.&type=revision&diff=852735253&oldid=831072857], [https://en.wikipedia.org/w/index.php?title=5-Hydroxytryptophan&diff=next&oldid=850909232], plus WP:GENFIXES.

=Discussion=

{{BotTrial|edits=50}} (10 of each kind). — xaosflux Talk 01:58, 1 August 2018 (UTC)

:{{Re|Xaosflux}} {{BotTrialComplete}} [https://en.wikipedia.org/w/index.php?title=Special:Contributions/CitationCleanerBot&limit=50&offset=201808010220 Full trial]. They are so interlinked I couldn't separate them into neat batches, so I did 50 edits, and they show all types. I ran the trial semi-automatically, but saved things as if it were automatic. Two problem edits happened

:*[https://en.wikipedia.org/w/index.php?title=Zip_the_Pinhead&diff=prev&oldid=852892106] (this was the only instance of [https://en.wikipedia.org/w/index.php?search=insource%3A%2Fref+name+%2A%3D+%2A%22PubMed+ID.%2A%22%2F&title=Special:Search&profile=default&fulltext=1&searchToken=dqzpwcl1mtheqfxbkiv1gnp0o insource:/ref name *= *"PubMed ID.*"/] in Wikipedia, which I've now [https://en.wikipedia.org/w/index.php?title=Zip_the_Pinhead&diff=next&oldid=852892118 fixed])

:*[https://en.wikipedia.org/w/index.php?title=Rudolph_Leibel&diff=prev&oldid=852891271] (GIGO mostly {{para|pmid 234213}} is a bad parameter, but for the multiple PMIDs in a row, that's a curveball. The bot didn't break anything there though.)

:There is also

:*[https://en.wikipedia.org/w/index.php?title=User:Hpaine/sandbox&diff=prev&oldid=852892569], which required a follow up [https://en.wikipedia.org/w/index.php?title=User:Hpaine/sandbox&diff=next&oldid=852892569], due to the interactions of genfixes with the bot. Headbomb {t · c · p · b} 02:25, 1 August 2018 (UTC)

:{{BotApproved}} — xaosflux Talk 02:46, 4 August 2018 (UTC)

: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.