Wikipedia:Bots/Requests for approval/Legobot 5


 * The following discussion is an archived debate. Please do not modify it. Subsequent comments should be made in a new section. The result of the discussion was Symbol keep vote.svg Approved.

Legobot 5
Operator: LegoKontribsTalkM

Automatic or Manually Assisted: Automatic supervised

Programming Language(s): Python using Pywikipedia

Function Summary: Replacing deprecated templates with coord (BOTREQ)

Edit period(s) (e.g. Continuous, daily, one time run): Should be a one time run.

Already has a bot flag (Y/N): Y

Function Details:
 * 1) Change all instances of coor d, coor dm and coor dms by simply changing the letters in the first part (,  or  ), to.
 * 2) Change all instances of coor at d, coor at dm and coor at dms by changing the letters in the first part, as above, and appending a  parameter.
 * 3) Changing, , to

Discussion
This will be running of off the latest dump. I made a test edit here. LegoKontribsTalkM 22:19, 27 September 2008 (UTC)
 * You may also want to consider replacing some older templates, like Geolinks and Mapit, though I think their usage is pretty low. Other than that, it sounds good, would you mind posting the regexes it uses? Mr.Z-man 04:11, 30 September 2008 (UTC)
 * It is finding       and replacing with   for the first one, and       with   LegoKontribsTalkM 00:05, 1 October 2008 (UTC)
 * All instances of coor at * must have . I trust that your final example should be , not  . Andy Mabbett (User:Pigsonthewing); Andy's talk; Andy's edits 16:39, 1 October 2008 (UTC)

←Sorry, that is what I meant, also, I can do, , LegoKontribsTalkM 03:34, 2 October 2008 (UTC)
 * Thank you again. Andy Mabbett (User:Pigsonthewing); Andy's talk; Andy's edits 17:30, 2 October 2008 (UTC)

Pages with geolinks-US-cityscale, etc. need more fixes than just conversion to coord, see Wikipedia talk:GEO. -- User:Docu
 * Mr.Z-man 17:44, 8 October 2008 (UTC)
 * LegoKontribsTalkM 23:18, 19 October 2008 (UTC)
 * Mr.Z-man 03:17, 2 November 2008 (UTC)


 * The above discussion is preserved as an archive of the debate. Please do not modify it. Subsequent comments should be made in a new section.