Wikipedia:Bots/Requests for approval/Hazard-Bot 31


 * 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 Symbol keep vote.svg Approved

Hazard-Bot 31
Operator:

Time filed: 05:55, Saturday, December 5, 2015 (UTC)

Automatic, Supervised, or Manual: Automatic

Programming language(s): Python

Source code available: GitHub

Function overview: Replaces sandbox heading (and redirects) with user sandbox in userspace, excluding User:Sandbox and User talk:Sandbox

Links to relevant discussions (where appropriate): Bots/Requests for approval/Hazard-Bot 4

Edit period(s): once a month

Estimated number of pages affected: About 118 initially, then less that 10 each month (I guess)

Exclusion compliant (Yes/No): Yes

Already has a bot flag (Yes/No): Yes

Function details: The function overview pretty much says it all. Hazard SJ 05:55, 5 December 2015 (UTC)

Discussion
Okay, a couple things: —  Earwig   talk 12:07, 6 December 2015 (UTC)
 * How is this different from #4? Is it just re-approval because that was one-time only, or the language difference, or am I missing something?
 * Some pages (e.g. User:Cherrylimerickey/sandbox) have both, so it should be sure to not add it twice.
 * Yes, it's pretty much just re-approval based on what you said. Also, for the pages with both, would the best option be to remove the incorrect template and leave the correct template as-is? Hazard SJ 20:04, 6 December 2015 (UTC)
 * I'd think so. For each sandbox template, replace if there's no instance of a user template or remove if there is. Does this cover User: only or User talk: as well? —  Earwig   talk 22:08, 6 December 2015 (UTC)
 * [//github.com/HazardSJ/HazardBot/commit/0499213df08fd3f338b7419dc0d1a0b4ac474621 Code updated]: if the page does not already contain the the user sandbox template, replace the first occurrence of the standard sandbox template with a user sandbox template, then remove all (remaining) occurrences of the standard sandbox template. Also, it currently covers both     and     . Hazard SJ 03:05, 7 December 2015 (UTC)
 * —  Earwig   talk 06:57, 8 December 2015 (UTC)
 * Here are the edits. Hazard SJ</b> 02:21, 9 December 2015 (UTC)

—  Earwig   talk 02:59, 13 December 2015 (UTC)
 * 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.