Wikipedia:Bots/Requests for approval/JJMC89 bot 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: JJMC89 (talk · contribs · SUL · edit count · logs · page moves · block log · rights log · ANI search)
Time filed: 20:54, Friday, February 12, 2016 (UTC)
Automatic, Supervised, or Manual: Automatic
Programming language(s): AutoWikiBrowser
Source code available: AWB
Function overview: Replace {{WikiProjectBanners}} with {{WikiProject banner shell}}.
Links to relevant discussions (where appropriate): TFD (permalink), BOTREQ (permalink)
Edit period(s): One time run
Estimated number of pages affected: 5,600
Exclusion compliant (Yes/No): Yes
Already has a bot flag (Yes/No): No
Function details: Replace {{WikiProjectBanners|...}}
without |collapsed=
with {{WikiProject banner shell|collapsed=yes|...}}
for all transclusions.
|
- Find:
\{\{([Ww]ikiProjectBanners|[Ww]ikiProject[ _]Banners|[Ww]ikiprojectbanners|[Ww]pb|[Ww]PB)(\s*\|([^{]|\{[^{]|\{\{[^{}]+\}\})+)\}\}
- Replace:
{{WikiProject banner shell|collapsed=yes$2}}
- Find:
\|\s*banner collapsed\s*=\s*[^|}]*\s*\|
- Replace
|
- Replace
- Replace:
- Run with all automatic changes and User:Magioladitis/WikiProjects.
Discussion
[edit]Thanks for taking this on. A few notes:
- Please include calls to {{WikiProject Banners}} and {{WPB}}. These are redirects to Template:WikiProjectBanners
- Exclude any with the explicit statement
|collapsed=no
, or replace them with {{WikiProject banner shell}} without the collapsed parameter. - Retain any other parameter calls, i.e.
|blp=
,|living=
,|blpo=
,|activepol=
— Martin (MSGJ · talk) 23:28, 12 February 2016 (UTC)[reply]
- The redirect target for {{WPB}} changed after I filed the BRFA. I will adjust the regex to respect
|collapsed=
. All other parameters will be retained. — JJMC89 (T·C) 05:28, 13 February 2016 (UTC)[reply] - Updated regex in function details.
|banner collapsed=
will be converted to|collapsed=
. — JJMC89 (T·C) 22:57, 13 February 2016 (UTC)[reply]- Actually
|banner collapsed=
refers to a separate feature which is no longer supported by either template. So this one can just be ignored / removed. Thanks — Martin (MSGJ · talk) 09:07, 15 February 2016 (UTC)[reply]- I have updated the regex again.
|banner collapsed=
will be retained but ignored. — JJMC89 (T·C) 05:46, 17 February 2016 (UTC)[reply]- Thank you. (It might actually make more sense just to remove that unused parameter.) Can we get some BAG attention to this request plase? — Martin (MSGJ · talk) 16:11, 18 February 2016 (UTC)[reply]
- I have updated the regex again.
- Actually
- Wasn't the closure of the tfd to redirect instead of delete/merge? --slakr\ talk / 04:47, 19 February 2016 (UTC)[reply]
- Thanks for looking in. The closure was clarified by Primefac. See User talk:Primefac#WikiProjectBanners and Template talk:WikiProjectBannerShell#Template:WikiProjectBanners — Martin (MSGJ · talk) 12:46, 19 February 2016 (UTC)[reply]
- Slakr, the TFD was closed as redirect, but as a courtesy to MSGJ I rolled back my change to a redirect, allowing them to delete/redirect via this BRFA. My opinion (expressed in multiple places) still stands that if someone wants to change a particular instance of the shell, they are welcome to do so. I doubt all but a couple dozen of the 5600 uses of this template really need it. If this BRFA is declined I'll simply restore the redirect and users can change the template call as they see fit. Primefac (talk) 22:42, 22 February 2016 (UTC)[reply]
- I can adjust to skip transclusions that have
|collapsed=
already specified. — JJMC89 (T·C) 06:31, 23 February 2016 (UTC)[reply]
- I can adjust to skip transclusions that have
- Slakr, the TFD was closed as redirect, but as a courtesy to MSGJ I rolled back my change to a redirect, allowing them to delete/redirect via this BRFA. My opinion (expressed in multiple places) still stands that if someone wants to change a particular instance of the shell, they are welcome to do so. I doubt all but a couple dozen of the 5600 uses of this template really need it. If this BRFA is declined I'll simply restore the redirect and users can change the template call as they see fit. Primefac (talk) 22:42, 22 February 2016 (UTC)[reply]
- Thanks for looking in. The closure was clarified by Primefac. See User talk:Primefac#WikiProjectBanners and Template talk:WikiProjectBannerShell#Template:WikiProjectBanners — Martin (MSGJ · talk) 12:46, 19 February 2016 (UTC)[reply]
{{BAGAssistanceNeeded}} Can we have a decision on this simple task please? — Martin (MSGJ · talk) 09:28, 3 March 2016 (UTC)[reply]
Approved for trial (50 edits). Please provide a link to the relevant contributions and/or diffs when the trial is complete. I was hoping with becomes part of AWB's talk age gen fixes. I strongly advice that User:Magioladitis/WikiProjects is loaded to nomralise project banners at the same time. -- Magioladitis (talk) 12:46, 4 March 2016 (UTC)[reply]
- Trial complete. 50 edits. I didn't see any issues. Function details updated to match trial. — JJMC89 (T·C) 04:25, 5 March 2016 (UTC)[reply]
- I checked a random sample of about 10 and didn't spot any issues either. — Martin (MSGJ · talk) 09:10, 7 March 2016 (UTC)[reply]
- {{BAG assistance needed}} If there are no issues/objections could this be approved? Thanks. — JJMC89 (T·C) 05:33, 12 March 2016 (UTC)[reply]
- Approved. — Earwig talk 18:31, 14 March 2016 (UTC)[reply]
- {{BAG assistance needed}} If there are no issues/objections could this be approved? Thanks. — JJMC89 (T·C) 05:33, 12 March 2016 (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.