Operator: DannyS712 (talk · contribs · SUL · edit count · logs · page moves · block log · rights log · ANI search)
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#See also bot
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)[reply]
- @Xaosflux: No, at first this would only apply to pages that already have see also sections. --DannyS712 (talk) 13:57, 20 March 2019 (UTC)[reply]
- @DannyS712: 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)[reply]
- Would this only apply when the list is a newly created page? — xaosflux Talk 14:12, 20 March 2019 (UTC)[reply]
- @Xaosflux: 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)[reply]
- @DannyS712: 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)[reply]
- @Xaosflux: 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)[reply]
- 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)[reply]
Approved for trial (100 edits). Please provide a link to the relevant contributions and/or diffs when the trial is complete. (Please trial with 2 or 3 lists, not to exceed 100 edits in total). — xaosflux Talk 14:25, 20 March 2019 (UTC)[reply]
- 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)[reply]
- @DannyS712: 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)[reply]
- @Xaosflux: 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)[reply]
- @DannyS712: 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)[reply]
- 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)[reply]
- @Xaosflux: It was: replace
== ?See also ?==
with ==See also==
::::::* [[List of Historic Hotels of America]]
, and also, if the pages does not contain ==See also==
, replace == ?References ?==
with ==See also==
* [[List of Historic Hotels of America]]
==References==
. Both also skip on the portal template. --DannyS712 (talk) 16:47, 2 April 2019 (UTC)[reply]