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:
coor
, coor dm
or coor dms
), to coord
.|display=inline,title
parameter.((Geolinks-cityscale))
, ((Geolinks-US-hoodscale))
, ((Mapit-US-cityscale))
to ((coord))
This will be running of off the latest dump. I made a test edit here. LegoKontribsTalkM 22:19, 27 September 2008 (UTC)[reply]
((coor at dms(.*?)))
((coor at dm(.*?)))
((coor at d(.*?)))
and replacing with ((coord|display=inline,title\\1))
for the first one, and ((coor dms(.*?)))
((coor dm(.*?)))
((coor d(.*?)))
with ((coord\\1))
LegoKontribsTalkM 00:05, 1 October 2008 (UTC)[reply]
|display=inline,title
. I trust that your final example should be ((coor d(.*?)))
, not ((coor at d(.*?)))
. Andy Mabbett (User:Pigsonthewing); Andy's talk; Andy's edits 16:39, 1 October 2008 (UTC)[reply]←Sorry, that is what I meant, also, I can do ((Geolinks-cityscale))
, ((Geolinks-US-hoodscale))
, ((Mapit-US-cityscale))
LegoKontribsTalkM 03:34, 2 October 2008 (UTC)[reply]
Pages with ((geolinks-US-cityscale)), etc. need more fixes than just conversion to ((coord)), see Wikipedia talk:GEO#Coordinates_in_US_cities_articles:_where_to_display. -- User:Docu