Wikipedia:Bots/Requests for approval/DannyS712 bot 16


 * 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

DannyS712 bot 16
Operator:

Time filed: 06:21, Tuesday, March 19, 2019 (UTC)

Automatic, Supervised, or Manual: automatic

Programming language(s): AWB

Source code available: AWB

Function overview: After a category is listified as the result of a CfD, add links to that list in the "see also" sections of the pages

Links to relevant discussions (where appropriate): Wikipedia talk:Categories for discussion/Archive 17

Edit period(s): As needed

Estimated number of pages affected: Probably <50 per run

Exclusion compliant (Yes/No): No

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

Function details: Add links to the see also section of pages. If approved for trial, I would like to trial this with Category:Battles won by Indigenous peoples of the Americas, which originally prompted the idea.

Discussion

 * Will you be creating see also sections just for this if they don't exist? — xaosflux  Talk 13:47, 20 March 2019 (UTC)
 * No, at first this would only apply to pages that already have see also sections. --DannyS712 (talk) 13:57, 20 March 2019 (UTC)


 * process wise, how would you know it was time to do this task and what the inputs should be? — xaosflux  Talk 14:12, 20 March 2019 (UTC)


 * Would this only apply when the list is a newly created page? — xaosflux  Talk 14:12, 20 March 2019 (UTC)
 * yes, I would do it only after a new list is created. Process: Create list (using User:DannyS712/Cat links), remove the category from the pages (using cat-a-lot), add the list to the see also section (bot run, manually activated) --DannyS712 (talk) 14:14, 20 March 2019 (UTC)
 * How would you know that the trigger for this task (that A CfD was closed as listify) and the prerequisite (the new list was actually created) has occurred? — xaosflux  Talk 14:18, 20 March 2019 (UTC)
 * CfDs closed as listified are listed at WP:CFD/W/M for the list to be created. I would check both the CfD and the list before running --DannyS712 (talk) 14:19, 20 March 2019 (UTC)
 * OK so each run will be manually started only after validation, seems OK. If for some reason the CfD closes with a similar result to listify in to an existing list (merge into an existing list) this could still be useful, but you would need to ensure that there is not an existing link on the page (anywhere) to the list before adding it. —  xaosflux  Talk 14:24, 20 March 2019 (UTC)


 * (Please trial with 2 or 3 lists, not to exceed 100 edits in total). — xaosflux  Talk 14:25, 20 March 2019 (UTC)
 * Trial started - first 57 edits made to add List of Historic Hotels of America. I did it manually at first, to ensure that I caught all of the edge cases - if in doubt, skip. --DannyS712 (talk) 05:07, 29 March 2019 (UTC)
 * what kind of skips are you running in to, and how will this be accounted for in 'automatic' mode? — xaosflux  Talk 14:24, 2 April 2019 (UTC)
 * For example I skipped The Broadmoor, because it didn't have a see also section. I'm also skipping anything where the see also section starts with a portal link. I'm doing this by just replacing the see also section heading with the same heading plus a line for the list, as long as the section doesn't start with a portal link. --DannyS712 (talk) 15:13, 2 April 2019 (UTC)
 * On several other pages you appear to have continued even if it didn't have a see also section, creating one. What is the expected behavior? —  xaosflux  Talk 15:16, 2 April 2019 (UTC)
 * Sorry, it’s been a couple days since I ran the first part of the trial - I was going based on memory. Let me check the regex and get back to you. Sorry, —DannyS712 (talk) 15:49, 2 April 2019 (UTC)
 * It was: replace  with , and also, if the pages does not contain  , replace   with  . Both also skip on the portal template. --DannyS712 (talk) 16:47, 2 April 2019 (UTC)
 * a second list done, with 28 edits - one mistake, which I immediately reverted and was caused by the list including a wrong page, so I'll remember to check each list before a run. Thanks, --DannyS712 (talk) 06:25, 6 April 2019 (UTC)
 * task approved. — xaosflux  Talk 14:38, 7 April 2019 (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.