Template talk:WikiProject banner shell/Archive 12
Appearance
![]() | This is an archive of past discussions about Template:WikiProject banner shell. Do not edit the contents of this page. If you wish to start a new discussion or revive an old one, please do so on the current talk page. |
Archive 5 | ← | Archive 10 | Archive 11 | Archive 12 |
December update
Changes in sandbox:
- Stop passing class parameter to pagetype, not needed and was giving unexpected results when class=NA
- Stop recognising living parameter, and instead track it as an unknown parameter, so the bot can replace them with blp
- If class parameter is used on any non-article, then track it as redundant.
- Track any uses of
|category=yes
and|collapsed=no
as redundant/invalid - Some code simplifications
Any other requests/discussion? — Martin (MSGJ · talk) 21:14, 11 December 2024 (UTC)
Done This has been deployed with the additional change discussed in Module talk:WikiProject banner#Punctuated WPs not recognizing duplication. @Gonnym, could you please ensure the bot is able to handle the changes needed with the living, collapsed and category parameters? — Martin (MSGJ · talk) 22:33, 14 December 2024 (UTC)
- @Kanashimi can the bot handle the above fixes to the shell for Category:Pages using WikiProject banner shell with invalid parameters and Category:Pages using WikiProject banner shell with unknown parameters? Can it also handle the removal from the shell (not the project banners) of
|class=value
for non-articles in Category:WikiProject banners with redundant class parameter? Gonnym (talk) 18:08, 15 December 2024 (UTC)- I need more specific instructions. Can you tell me which article, and how it should be changed? Kanashimi (talk) 21:59, 15 December 2024 (UTC)
- @Kanashimi as requested:
- Any page in the non-article namespace (Category, Template, File, Project, etc.) using
|class=
in the {{WikiProject banner shell}} and uses any (or even no) value, should have the|class=value
removed from the banner shell. These pages are populating Category:WikiProject banners with redundant class parameter. - Any page using
|category=yes
(and its variations) should have that removed. Those pages are now populating Category:Pages using WikiProject banner shell with invalid parameters. - Any page using
|collapsed=no
(and its variations) should have that removed. Those pages are now populating Category:Pages using WikiProject banner shell with invalid parameters. - Any page using
|living=
with any value, should be replaced with|blp=
. Those pages are now populating Category:Pages using WikiProject banner shell with unknown parameters.
- Any page in the non-article namespace (Category, Template, File, Project, etc.) using
- Gonnym (talk) 10:39, 16 December 2024 (UTC)
- #1-3 should be solved with remove_unnecessary_parameters, #4 should already be implemented. Kanashimi (talk) 13:31, 16 December 2024 (UTC)
- What would the code be to remove any text including the
class=
part?|class=.*
? Gonnym (talk) 13:47, 16 December 2024 (UTC)- Yes, this should work. Kanashimi (talk) 19:53, 16 December 2024 (UTC)
- Didn't work here or here. The bot is also not removing class=redirect from here. Not sure if knows how to detect a redirect, but if it can or does, then it should also remove this (that class is incorrect). Gonnym (talk) 14:48, 17 December 2024 (UTC)
- Oops, I'm sorry, I didn't notice that remove_unnecessary_parameters doesn't include WPBS. I've added a new option remove_unnecessary_WPBS_parameters to handle this. Kanashimi (talk) 23:19, 17 December 2024 (UTC)
- Do we need to remove all non-standard_grades on WPBS? Kanashimi (talk) 08:54, 18 December 2024 (UTC)
- Yes, remove the class parameter and its value from all non-articles, and from redirect and disambiguation pages (those pages are in the redundant class category). Gonnym (talk) 10:41, 19 December 2024 (UTC)
- @MSGJ For all pages in Category:WikiProject banners with redundant class parameter, including ns:1 (
[[Talk:]]
), is it safe to remove|class=
of {{WikiProject banner shell}}? Kanashimi (talk) 01:29, 20 December 2024 (UTC)- Removing
|class=
from mainspace {{WikiProject banner shell}} in Category:WikiProject banners with redundant class parameter should only be done for|class=redirect
,|class=disambiguation
, which I think are the bulk of that category, and possibly a few other automatically detected classes. ~ Tom.Reding (talk ⋅dgaf) 13:53, 21 December 2024 (UTC)- A small fix to this: when the page is a redirect or disambiguation, remove the class, not only when the class is
|class=redirect
or|class=disambiguation
. We don't care what the value is in these cases. Gonnym (talk) 14:24, 21 December 2024 (UTC)- Yes, but I'd suggest for Cewbot to do the bulk, straightforward fixes first, and then expand to more nuanced checks/code from there. ~ Tom.Reding (talk ⋅dgaf) 17:04, 21 December 2024 (UTC)
- Over 100k pages left after initial run. It's time the class parameter from redirect pages is removed or we won't be able to find actual issues. Gonnym (talk) 17:39, 28 December 2024 (UTC)
- Yes, but I'd suggest for Cewbot to do the bulk, straightforward fixes first, and then expand to more nuanced checks/code from there. ~ Tom.Reding (talk ⋅dgaf) 17:04, 21 December 2024 (UTC)
- A small fix to this: when the page is a redirect or disambiguation, remove the class, not only when the class is
- I can submit a BRFA to help clear Category:WikiProject banners with redundant class parameter (659) & Category:Pages using WikiProject banner shell with unknown parameters (0) if necessary (670k total & still growing). ~ Tom.Reding (talk ⋅dgaf) 14:13, 21 December 2024 (UTC)
- I think most of them can be solved with the existing framework, let me try it. Kanashimi (talk) 02:41, 22 December 2024 (UTC)
- Test completed. Set remove_unnecessary_WPBS_parameters and it should work. Kanashimi (talk) 04:50, 22 December 2024 (UTC)
- @Kanashimi @Tom.Reding about 116k pages left in Category:WikiProject banners with redundant class parameter. Most seems to be from pointless classes added to redirect pages. Gonnym (talk) 10:08, 1 February 2025 (UTC)
- Test completed. Set remove_unnecessary_WPBS_parameters and it should work. Kanashimi (talk) 04:50, 22 December 2024 (UTC)
- I think most of them can be solved with the existing framework, let me try it. Kanashimi (talk) 02:41, 22 December 2024 (UTC)
- Removing
- @MSGJ For all pages in Category:WikiProject banners with redundant class parameter, including ns:1 (
- Yes, remove the class parameter and its value from all non-articles, and from redirect and disambiguation pages (those pages are in the redundant class category). Gonnym (talk) 10:41, 19 December 2024 (UTC)
- Didn't work here or here. The bot is also not removing class=redirect from here. Not sure if knows how to detect a redirect, but if it can or does, then it should also remove this (that class is incorrect). Gonnym (talk) 14:48, 17 December 2024 (UTC)
- Yes, this should work. Kanashimi (talk) 19:53, 16 December 2024 (UTC)
- What would the code be to remove any text including the
- I'm not sure how to modify the regex, but could it be modified so an empty
|living=
is also removed? See pages like Talk:Abdul Hai Sarker for an example. Gonnym (talk) 14:16, 29 December 2024 (UTC)
- #1-3 should be solved with remove_unnecessary_parameters, #4 should already be implemented. Kanashimi (talk) 13:31, 16 December 2024 (UTC)
- @Kanashimi as requested:
- I need more specific instructions. Can you tell me which article, and how it should be changed? Kanashimi (talk) 21:59, 15 December 2024 (UTC)
- @Kanashimi can the bot handle the above fixes to the shell for Category:Pages using WikiProject banner shell with invalid parameters and Category:Pages using WikiProject banner shell with unknown parameters? Can it also handle the removal from the shell (not the project banners) of
- Is there an update on the template no longer recognising the "living" parameter? As far as I can see it has meant that articles on BLPs with this parameter have now lost the talk-page BLP warning, which is not a good state to leave them in. Espresso Addict (talk) 04:34, 27 December 2024 (UTC)
- I agree; Tom.Bot 8 submitted. Cewbot is not taking care of these ~900k Category:Pages using WikiProject banner shell with unknown parameters (0) anywhere near fast enough. ~ Tom.Reding (talk ⋅dgaf) 09:38, 27 December 2024 (UTC)
- Can this please be temporarily reversed? ~740k pages are currently missing the BLP banner and the bot has been put on hold.
living
should still work until there is consensus to run the bot. C F A 18:04, 2 January 2025 (UTC)Done. Yes I didn't expect it would take so long for these to be converted. The module will now display the BLP warning again if
|living=yes
— Martin (MSGJ · talk) 06:43, 4 January 2025 (UTC)