:Wikipedia:Bots/Requests for approval/TolBot 13

TolBot 13

[[User:TolBot|TolBot 13]]

{{Newbot|TolBot|13}}

Operator: {{botop|Tol}}

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):

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 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.

= Discussion =

= Thai subdistricts =

{{collapse|1=

Subdistricts to move:

}}

(Moved from above to avoid breaking syntax. Tol (talk | contribs) @ 20:19, 3 October 2022 (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 Wikipedia:Bots/Noticeboard.