Wikipedia:Bots/Requests for approval/RustyBot 3

New to bots on Wikipedia? Read these primers!

Operator: Rusty Cat (talk · contribs · SUL · edit count · logs · page moves · block log · rights log · ANI search)

Time filed: 18:34, Tuesday, March 25, 2025 (UTC)

Function overview: Tag pages listed at User:Alex 21/sandbox/No episode table with {{convert to Episode table}}

Automatic, Supervised, or Manual: automatic

Programming language(s): Pywikibot

Source code available: [1]

Links to relevant discussions (where appropriate): [2]

Edit period(s): OTR

Estimated number of pages affected: 5,000

Namespace(s): Mainspace

Exclusion compliant (Yes/No): Yes

Function details: Tags pages listed at User:Alex 21/sandbox/No episode table with {{convert to Episode table}}.

The bot uses multiple regular expressions to try and place the template in the correct location per MOS:SECTIONORDER (as a maintenance tag), falling back to prepending it at the beginning of the article. If there is a {{multiple issues}} template present, the bot will group the template into the multiple issues at the beginning; it does not place a multiple issues on the page if it is not already present.

Discussion

Thanks Rusty Cat! Tagging the pages on this list created by User:Alex 21 will help speed the conversion of the tables which then benefit the pages they're on with better MoS conformability and maintenance. Pinging also User:Favre1fan93. --Gonnym (talk) 22:57, 25 March 2025 (UTC)[reply]

Will the bot detect if the existing wikitables have in fact already been replaced with episode tables? Mdann52 (talk) 17:52, 29 March 2025 (UTC)[reply]
It does not currently do so, but I can add a check for the template being transcluded on the page. ~ Rusty meow ~ 19:22, 29 March 2025 (UTC)[reply]
Not sure the bot needs to do that. It's not set up as a monitor to check on progress, it's just an on request bot that adds the banner to lists generated from the report. Gonnym (talk) 12:26, 3 April 2025 (UTC)[reply]

Approved for trial (50 edits). Please provide a link to the relevant contributions and/or diffs when the trial is complete.DreamRimmer (talk) 18:06, 18 April 2025 (UTC)[reply]

Trial complete. [3] ~ Rusty meow ~ 20:46, 20 April 2025 (UTC)[reply]
Looks good. Gonnym (talk) 09:27, 21 April 2025 (UTC)[reply]
Duplicate templates were added on some pages. I see you have fixed those edits, but did you update the code to prevent duplicates from being added? Also, in Special:Diff/1286585473 and Special:Diff/1286585751, it caused issues with the hatnote templates. Have you addressed this problem? – DreamRimmer (talk) 11:35, 24 April 2025 (UTC)[reply]
@DreamRimmer: I updated the code to prevent duplicates from added and am looking into how to prevent issues with templates. ~ Rusty meow ~ 00:14, 26 April 2025 (UTC)[reply]
Uses material from the Wikipedia article Wikipedia:Bots/Requests for approval/RustyBot 3, released under the CC BY-SA 4.0 license.