Wikipedia:Bots/Requests for approval/Galobot 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: Galobtter (talk · contribs · SUL · edit count · logs · page moves · block log · rights log · ANI search)
Time filed: 17:54, Wednesday, March 20, 2019 (UTC)
Automatic, Supervised, or Manual: Automatic
Programming language(s): Python (Pywikibot)
Source code available: here
Function overview: Replace uses of "letterhead" class with template
Links to relevant discussions (where appropriate):
Edit period(s): One time run
Estimated number of pages affected: ~400 (almost all results from search of "insource:"letterhead" insource:/class *= *["'][a-zA-Z0-9 ]*letterhead/")
Exclusion compliant (Yes/No): Yes
Already has a bot flag (Yes/No): Yes
Function details: Replaces <div class = "letterhead">
with {{letterhead start}} and the closing tag with {{letterhead end}}, so that the class "letterhead" can be removed from MediaWiki:Common.css. Uses mwparserfromhell so it should be good with edge cases.
Discussion
edit- Approved for trial (25 edits). Please provide a link to the relevant contributions and/or diffs when the trial is complete. @Galobtter: please additionally mark these 'minor', esp in case any occur in user_talk:. — xaosflux Talk 02:11, 22 March 2019 (UTC)[reply]
- Xaosflux Thanks. (There are many instances in user talk actually, which is why I came here to have a flagged bot do it rather than making an AWB request.) Trial complete. Edits. One issue was that a a few core contest pages had markup like
{{Wikipedia:The Core Contest/Prettifying}}...</div>
within the<div class = "letterhead">
, which confused the parser in this edit; however, I've manually fixed those instances in the 400 pages to fix. I didn't see any other issues. Galobtter (pingó mió) 09:10, 22 March 2019 (UTC)[reply]
- Xaosflux Thanks. (There are many instances in user talk actually, which is why I came here to have a flagged bot do it rather than making an AWB request.) Trial complete. Edits. One issue was that a a few core contest pages had markup like
- Approved. task approved. — xaosflux Talk 12:53, 22 March 2019 (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.