Jump to content

Template talk:WikiProject banner shell/Archive 12

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
Archive 5Archive 10Archive 11Archive 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:
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 (talkdgaf)  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 (talkdgaf)  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)
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 (talkdgaf)  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)
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)
 Fixed Kanashimi (talk) 22:13, 29 December 2024 (UTC)