Wikipedia:Bots/Requests for approval/CitationCleanerBot 4
- 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: Headbomb (talk · contribs · SUL · edit count · logs · page moves · block log · rights log · ANI search)
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)[reply]
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. [1], [2], plus WP:GENFIXES.
Discussion
[edit]Approved for trial (50 edits). Please provide a link to the relevant contributions and/or diffs when the trial is complete. (10 of each kind). — xaosflux Talk 01:58, 1 August 2018 (UTC)[reply]
- @Xaosflux: Trial complete. 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
- [3] (this was the only instance of insource:/ref name *= *"PubMed ID.*"/ in Wikipedia, which I've now fixed)
- [4] (GIGO mostly
|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
- Approved. — xaosflux Talk 02:46, 4 August 2018 (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.