Wikipedia:Bots/Requests for approval/TolBot 13
- The following discussion is an archived debate. Please do not modify it. To request review of this BRFA, please start a new section at Wikipedia:Bots/Noticeboard. The result of the discussion was Approved.
Operator: Tol (talk · contribs · SUL · edit count · logs · page moves · block log · rights log · ANI search)
Time filed: 21:25, Monday, January 10, 2022 (UTC)
Function overview: Move Southeast Asia district pages
Automatic, Supervised, or Manual: supervised
Programming language(s): Python
Source code available: simple mass move script
Links to relevant discussions (where appropriate):
- AWB request (permalink)
- WikiProject Southeast Asia discussion which led to that request (permalink)
- Related RM for lowercasing "province" (permalink)
Edit period(s): one-time
Estimated number of pages affected: 1705 (pages to be moved, does not include redirects to be moved over or created)
Namespace(s): (Article)
Exclusion compliant (Yes/No): no
Function details:
- The bot would be given a list of pages to be moved (at Wikipedia talk:WikiProject Southeast Asia#Districts (permalink)).
- It would get the pages from the wikitext using this regex:
^\* \[\[(.*?)\]\] to \[\[(.*?)\]\]$
- It would get the pages from the wikitext using this regex:
- It would iterate through the pages to be moved and move the pages.
- If the new title already exists:
- If it is a single-revision redirect to the old title, it would move it over the redirect.
- If it is a multiple-revision redirect to the old title, it would perform a round-robin move.
- The bot account would need the page mover permission to do this.
- If it is a redirect to another title or a non-redirect, it would notify me so that I could take care of it manually.
- If the new title already exists:
Discussion
edit- I'm aware of the generalised RM consensus, but still please notify Wikipedia talk:WikiProject Southeast Asia of the existence of this BRFA in a new section, as well as the WikiProjects for Thailand, Vietnam, Cambodia and Laos (where they exist). I think it's reasonable to allow a period for objections before proceeding. ProcrastinatingReader (talk) 22:22, 10 January 2022 (UTC)[reply]
- Done (). Tol (talk | contribs) @ 23:35, 10 January 2022 (UTC)[reply]
- How long do we need to wait? Dicklyon (talk) 21:39, 12 January 2022 (UTC)[reply]
- Are we there yet? Dicklyon (talk) 01:50, 15 January 2022 (UTC)[reply]
- @ProcrastinatingReader: It's been nearly a week with no objections; is that enough? Tol (talk | contribs) @ 20:42, 15 January 2022 (UTC)[reply]
- Probably no round-robin moves are needed, so this can be done without page-mover rights. If there are exceptions, they can be dealt with by hand; I'll be happy to handle exceptions via WP:RMTR if there are any. Dicklyon (talk) 18:48, 15 January 2022 (UTC)[reply]
- Approved for trial (50 edits). Please provide a link to the relevant contributions and/or diffs when the trial is complete. Trial for 50 moves. ProcrastinatingReader (talk) 16:03, 18 January 2022 (UTC)[reply]
- And I'll be happy to work on cleanup edits for those 50 when they're done. I may create some redlinks in the process, to articles not yet moved. Dicklyon (talk) 03:30, 19 January 2022 (UTC)[reply]
- Thank you, @ProcrastinatingReader! Trial complete. Pages moved: . I just realised that the bot group includes
- Bang Sai district (1404)
- Long district, Thailand
- Steung Trang district
- Prek Pnov district
- Phong Điền district, Thừa Thiên Huế
- Mueang Suphan Buri district
- Mueang Nong Bua Lam Phu district
- Mueang Chai Nat district
- Mongkol Borey district
- Saravane district
- Thaphalanxay district
- Xonboury district
- Assaphone district
- Viraboury district
- Xayboury district
- Khanthaboury district
- Champhone district
- Thapangthong district
- Nong district
- Seponh district
- Phine district
- Atsaphangthong district
- Outhoumphone district
- Kounkham district
- Xaibouathong district
- Sebangphay district
- Nakai district
- Boualapha district
- Yommalath district
- Hineboune district
- Nong Bok district
- Mahaxay district
- Thakhek district
- Xaichamphon district
- Khamkeut district
- Borikhane district
- Pakkading district
- Thaphabat district
- Meun district
- Hinhurp district
- Viengkham district, Vientiane
- Mad district
- Xanakharm district
- Feuang district
- Vangvieng district
- Kasy district
- Keo Oudom district
- Thoulakhom district
- Phonhong district
- Phaxay district
suppressredirect
, so page mover permissions aren't needed. Tol (talk | contribs) @ 15:53, 19 January 2022 (UTC)[reply]- Those look right to me. The double redirects have even been fixed already (the few I checked at least). Dicklyon (talk) 23:36, 19 January 2022 (UTC)[reply]
- I went through and did case cleanup edits on those 50. Not a lot to do, but I may have missed something. Dicklyon (talk) 04:33, 21 January 2022 (UTC)[reply]
- Sorry for the late response—I haven't been watching things closely. Dicklyon, it seems you haven't compiled a list for the Thai subdistricts that need to be moved yet? I've identified the following 152 from a quick WP:PetScan query. --Paul_012 (talk) 13:58, 19 January 2022 (UTC) (List of subdistricts moved to #Thai subdistricts to avoid breaking syntax. Tol (talk | contribs) @ 20:19, 3 October 2022 (UTC))[reply]
- Thanks! I was not aware of that PetScan tool. It's just what I need for various things. I've formatted your list like what TolBot expects, and I think it's good to go, since there a consensus to also do subdistricts (I just hadn't found them, not having looked very hard). Dicklyon (talk) 23:26, 19 January 2022 (UTC)[reply]
- Ah... sorry for not reaching out with the tip sooner. Manually compiling the lists must have been a major effort. (It helped identify that Sattahip wasn't categorised, though.) --Paul_012 (talk) 02:19, 20 January 2022 (UTC)[reply]
- Well, it wasn't exactly manual, but was more roundabout. Dicklyon (talk) 04:58, 20 January 2022 (UTC)[reply]
- Ah... sorry for not reaching out with the tip sooner. Manually compiling the lists must have been a major effort. (It helped identify that Sattahip wasn't categorised, though.) --Paul_012 (talk) 02:19, 20 January 2022 (UTC)[reply]
- Thanks! I was not aware of that PetScan tool. It's just what I need for various things. I've formatted your list like what TolBot expects, and I think it's good to go, since there a consensus to also do subdistricts (I just hadn't found them, not having looked very hard). Dicklyon (talk) 23:26, 19 January 2022 (UTC)[reply]
- Can we also get permission to add the 152 subdistrict article downcases; these were insisted on in the same discussions (and I verified that there are none like this for Vietnam, Laos, or Cambodia). If not, I will just do them by hand. Dicklyon (talk) 17:14, 21 January 2022 (UTC)[reply]
- I'm pretty sure those can be included; they're the same type of edit. Tol (talk | contribs) @ 18:24, 21 January 2022 (UTC)[reply]
- @ProcrastinatingReader: Are we waiting for you to review the trial of 50? Or for someone else to approve? Dicklyon (talk) 06:02, 23 January 2022 (UTC)[reply]
- I'm leaning on approval but need to check a few things. I'll try and get around to reviewing this today/tomorrow. ProcrastinatingReader (talk) 08:42, 23 January 2022 (UTC)[reply]
- Closing notes: There is generalised consensus through RM for the moves to Thai districts, and seemingly no objections at the SEA WikiProject or at this BRFA to extend that to the rest of SEA, where a list of affected pages was posted. I see no technical issues of concern in the trial data. The approval is limited to the list posted there (permalink), as well as the 152 listed above -- please post on the talk page of this BRFA if this task needs to be extended to other pages. I note that post-move cleanup edits will be necessary, but I don't think it's a blocker for this BRFA or worth requiring this task to handle those clean-ups, and it seems like Dicklyon (and possibly others) are willing to aid with that. ProcrastinatingReader (talk) 15:13, 23 January 2022 (UTC)[reply]
- Approved. ProcrastinatingReader (talk) 15:13, 23 January 2022 (UTC)[reply]
Thai subdistricts
edit(Moved from above to avoid breaking syntax. Tol (talk | contribs) @ 20:19, 3 October 2022 (UTC))[reply]
- 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 Wikipedia:Bots/Noticeboard.