Wikipedia:Bots/Requests for approval/CitationCleanerBot 3

CitationCleanerBot 3

[[User:CitationCleanerBot|CitationCleanerBot 3]]

{{Newbot|CitationCleanerBot|3}}

Operator: {{botop|Headbomb}}

Time filed: 15:38, Wednesday, July 18, 2018 (UTC)

Automatic, Supervised, or Manual: Automatic

Programming language(s): WP:AWB

Source code available: In {{cite xxx}}, find \|(\s*)(asin)(\s*)=(\s*)([^\|\}]*) replace with nothing when the citation contains \|(\s*)(isbn)(\s*)=(\s*)([^\s\|\}]+)

Function overview: remove ASIN values when ISBN identifiers are present (per Help:Citation Style 1#Identifiers), plus WP:GENFIXES. E.g. [https://en.wikipedia.org/w/index.php?title=User%3AHeadbomb%2Fsandbox4&type=revision&diff=850878839&oldid=850878510].

Links to relevant discussions (where appropriate): Help talk:Citation Style 1#Clearing out ASIN when ISBN is present by bot

Edit period(s): One big run to start, plus occasional runs as amazon links/asins creep up again.

Estimated number of pages affected: ~2000

Namespace(s): Mainspace, Draft, occasionally Wikipedia (manually)

Exclusion compliant (Yes/No): Yes

Function details: remove ASIN values when ISBN identifiers are present. E.g. [https://en.wikipedia.org/w/index.php?title=User%3AHeadbomb%2Fsandbox4&type=revision&diff=850878839&oldid=850878510].

=Discussion=

  • This looks like a straightforward task to me. It wwill be helpful if the edit summary points to this BRFA. Will the search be case-insensitive so that it correctly catches both {{para|ASIN}} and {{para|asin}} (and the same for ISBN)? – Jonesey95 (talk) 04:08, 19 July 2018 (UTC)

: It's case insensitive, yes. Headbomb {t · c · p · b} 04:40, 19 July 2018 (UTC)

:{{BotTrial|edits=40}} Please report back here with diff range when trial has run. — xaosflux Talk 01:55, 21 July 2018 (UTC)

: {{BotTrialComplete}} {{Re|Xaosflux}} done. See [https://en.wikipedia.org/w/index.php?title=Special:Contributions/CitationCleanerBot&limit=40&offset=201807210240 40 most recent edits]. No error to report, although I was operating semi-automatically with slightly more aggressive rules than I'd operate automatically (e.g. it looked inside {{tl|reflist}} / {{tl|quote box}}, etc. when it wouldn't do that during an automated run. This is currently unsafe because of {{phab|T159958}}.) However I didn't have to modify anything the bot would not have touched during an automated run. Headbomb {t · c · p · b} 02:40, 21 July 2018 (UTC)

::[https://en.wikipedia.org/w/index.php?title=Battle_of_Rzhev,_Summer_1942&diff=prev&oldid=851253929 This one] is technically cosmetic, but unavoidable due to the way AWB is coded. Headbomb {t · c · p · b} 02:48, 21 July 2018 (UTC)

:{{BotApproved}} — xaosflux Talk 13:38, 24 July 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.