Wikipedia:Bots/Requests for approval/AlanBOT
- The following discussion is an archived debate. Please do not modify it. To request review of this BRFA, please start a new section at WT:BRFA. The result of the discussion was Approved.
Operator: Ikseevon (talk · contribs · SUL · edit count · logs · page moves · block log · rights log · ANI search), and my old account is Iced Kola (talk · contribs · SUL · edit count · logs · page moves · block log · rights log · ANI search), so I'm not actually a new user.
Time filed: 19:13, Wednesday April 3, 2013 (UTC)
Automatic, Supervised, or Manual: Automatic
Programming language(s): C++
Source code available: Not at this moment, but the framework will be made public on BitBucket.
Function overview: Truncates over-precise decimal coordinates (6+ decimal places) at the 6th decimal place, and overprecise DMS coordinates (2+ decimal places in the seconds) at the 2nd decimal place.
Links to relevant discussions (where appropriate): 1: Bot Request, 2: Short WikiProject discussion, 3: Wikiproject guideline on over-precise coordinates.
Edit period(s): One time run. Future runs can done by request, but shouldn't be necessary for a while after the initial run.
Estimated number of pages affected: {{Coord}} has nearly 840k transclusions, so the number is a bit unpredictable right now, but my estimates at this point are only about a couple thousand. Estimating around 10k.
Exclusion compliant (Yes/No): Yes
Already has a bot flag (Yes/No): No
Function details: As we know, coordinates can be added to articles with {{coord}} and the various {{infobox}} templates; this bot will find those coordinates that are overprecise, or in other words, have more than 6 decimal places. The task is straightforward enough and will truncate those decimals at the 6th decimal place, except for articles that choose to exclude bots, or aren't in the main namespace. If there's multiple instances of over-precise coordinates in one article, then the bot will fix them all in one edit.
The bot will also handle overprecise coordinates in DMS format, by truncating fractions of a second at the second decimal place.
Discussion
[edit]- Support as person requesting bot action. Thank you, Ikseevon. Once the bot has done its job, then maintenance bots such as The Anomebot (if their operators are willing); or tools like AWB, could perform this as a routine task. Question: what about DMS formatted coordinates (suggest trim seconds to to two decimal places)? Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 22:15, 3 April 2013 (UTC)[reply]
- So fractions of a second like coord|50|20|1.578|N should be coord|50|20|1.57|N? I haven't added that but I can add it this weekend. Or Friday, hopefully. I'll update the function overview at that time. --Alan(T)(E) 03:34, 4 April 2013 (UTC)[reply]
- Yes; thank you. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 09:54, 4 April 2013 (UTC)[reply]
- Done. Function details updated. --Alan(T)(E) 19:27, 7 April 2013 (UTC)[reply]
- Yes; thank you. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 09:54, 4 April 2013 (UTC)[reply]
- So fractions of a second like coord|50|20|1.578|N should be coord|50|20|1.57|N? I haven't added that but I can add it this weekend. Or Friday, hopefully. I'll update the function overview at that time. --Alan(T)(E) 03:34, 4 April 2013 (UTC)[reply]
- Approved for trial (50 edits). Please provide a link to the relevant contributions and/or diffs when the trial is complete. MBisanz talk 03:56, 8 April 2013 (UTC)[reply]
- Will start the trial now. Took some time to do a few userspace tests first. --Alan(T)(E) 01:25, 10 April 2013 (UTC)[reply]
- Trial complete. Went smoothly! ...except for this diff. It seems like the bot messed with the encoding of the tabs. I'll track it down in my logs and I assume (i.e. pray) it'll be a simple fix... --Alan(T)(E) 02:02, 10 April 2013 (UTC)[reply]
- Fixed. Simple encoding issue. --Alan(T)(E) 05:22, 11 April 2013 (UTC)[reply]
- Trial complete. Went smoothly! ...except for this diff. It seems like the bot messed with the encoding of the tabs. I'll track it down in my logs and I assume (i.e. pray) it'll be a simple fix... --Alan(T)(E) 02:02, 10 April 2013 (UTC)[reply]
- Will start the trial now. Took some time to do a few userspace tests first. --Alan(T)(E) 01:25, 10 April 2013 (UTC)[reply]
- Approved. MBisanz talk 11:20, 11 April 2013 (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 WT:BRFA.