Wikipedia:Bots/Requests for approval/PearBOT 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: Trialpears (talk · contribs · SUL · edit count · logs · page moves · block log · rights log · ANI search)
Time filed: 23:16, Wednesday, September 18, 2019 (UTC)
Automatic, Supervised, or Manual: automatic
Programming language(s): AWB
Source code available:
Function overview: Merging WikiProject banners after consensus at TfD
Links to relevant discussions (where appropriate): Wikipedia:Bot requests#Complete merge of Template:WikiProject Patna (was caried out using basically same regex)
Edit period(s): One-time run for each template
Estimated number of pages affected: Highly variable 100-10000
Exclusion compliant (Yes/No): Yes
Already has a bot flag (Yes/No): No
Function details: Will merge WikiProject banners after consensus at TfD. For example
{{PARENT PROJECT|class=stub|importance=low}}
{{CHILD PROJECT|class=stub|importance=mid}}
to
{{PARENT PROJECT|class=stub|importance=low|child=yes|child-importance=mid}}
This was done for WikiProject Patna, botreq linked, and I suspect there will be quite a few more in the near future.
Discussion
editAn example of where this would be used is WikiProject Tanks currently listed in the holding cell. --Trialpears (talk) 07:59, 20 September 2019 (UTC)[reply]
- For the record, I took care of {{WikiProject Tanks}} last night. Primefac (talk) 14:07, 22 September 2019 (UTC)[reply]
- Primefac, I saw that but I still think it would be useful for me to be able to do it as well. I currently have a list of about a dozen similar cases, as well as the three already listed a TfD. --Trialpears (talk) 14:31, 22 September 2019 (UTC)[reply]
- Approved for trial (50 edits). Please provide a link to the relevant contributions and/or diffs when the trial is complete. {{WikiProject Oregon government}} is up for merging, seems like a decent place to start. Primefac (talk) 12:56, 12 October 2019 (UTC)[reply]
- Primefac should I do it with my main account or should PearBOT be added to the checkpage? --Trialpears (talk) 10:48, 13 October 2019 (UTC)[reply]
- Sorry, didn't realize that you needed access. Name's on the list now. Primefac (talk) 15:49, 14 October 2019 (UTC)[reply]
- Trial complete. 50 edits, most went smootly except for some whitespace issue with the first few edits, not caught immedietly because I wasn't familiar with how AWB displays the addition of a blank line, and edit 7 where the assumption that there were no other templates starting with WikiProject Oregon placed between the parent and child templates proved wrong. It's now fixed and I reran it at https://regex101.com/ which showed it was fixed. I intended on using the last few edits to remove the child template when it was already redundant, but as it turns out this is never the case for this merger. I hope this isn't a problem for approval. Might as well say that parameter removal like this only occured because it used parameters not defined by the template, for which I checked so it didn't remove any extra parameters that could result in information loss. As there wasn't any issues after edit 7, I don't believe a full new trial should be necessary, but would gladly do so if that would make approval faster. --Trialpears (talk) 22:24, 14 October 2019 (UTC)[reply]
- Sorry, didn't realize that you needed access. Name's on the list now. Primefac (talk) 15:49, 14 October 2019 (UTC)[reply]
- Primefac should I do it with my main account or should PearBOT be added to the checkpage? --Trialpears (talk) 10:48, 13 October 2019 (UTC)[reply]
- Approved for trial (50 edits). Please provide a link to the relevant contributions and/or diffs when the trial is complete. {{WikiProject Oregon government}} is up for merging, seems like a decent place to start. Primefac (talk) 12:56, 12 October 2019 (UTC)[reply]
- Primefac, I saw that but I still think it would be useful for me to be able to do it as well. I currently have a list of about a dozen similar cases, as well as the three already listed a TfD. --Trialpears (talk) 14:31, 22 September 2019 (UTC)[reply]
Trial looks good to me and I am happy with the improvements that you have made throughout. On a personal note, I would've liked to see the regex fix linked rather than just the site homepage, but that is relatively minor. Approved.. As per usual, if amendments to - or clarifications regarding - this approval are needed, please start a discussion on the talk page and ping. --TheSandDoctor Talk 07:03, 19 October 2019 (UTC)[reply]
- Post-approval update: following a discussion at WP:AWBREQ (permalink) this task has been expanded to also include WikiProject banners where there is a clear consensus within that project that a banner is to be merged or otherwise replaced with another banner. This is primarily to avoid an unnecessary trip to TFD purely for the purposes of indicating that consensus. Primefac (talk) 01:14, 7 May 2021 (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.