Wikipedia:Bots/Requests for approval/BattyBot 81

BattyBot 81
Operator:

Time filed: 14:12, Wednesday, February 7, 2024 (UTC)

Function overview: Replace with

Automatic, Supervised, or Manual: Automatic

Programming language(s): AutoWikiBrowser

Source code available: AWB

Links to relevant discussions (where appropriate): Bot requests

Edit period(s): Monthly

Estimated number of pages affected: 20,661

Namespace(s): Mainspace

Exclusion compliant (Yes/No): Yes

Function details: Category:Articles missing coordinates with coordinates on Wikidata contains articles tagged with, but they all have coordinates available on Wikidata. This bot would replace with  which will fetch the coordinates from Wikidata (e.g. this edit). This bot will also run AWB's general fixes. Thank you for your consideration.

Discussion
This might be a dumb question, but if every page indicating that it is missing coords is already on Wikipedia, why do we have this template? Why not just make it a wrapper/redirect to coord? I know that asked for this, and I trust their judgment, but this seems like a lot of work if it's that trivial of an issue. Primefac (talk) 14:26, 7 February 2024 (UTC)


 * @Primefac: coord missing contains 93,000 pages. Only 20,000 of them have coordinates on Wikidata.  However, if you'd like to update the templates so this request would be moot, that's fine with me. GoingBatty (talk) 14:39, 7 February 2024 (UTC)
 * Yup, as I said... dumb question. Apparently I can't read, and (for some reason) thought that was also the transclusion count. Primefac (talk) 14:46, 7 February 2024 (UTC)
 * Do you mean that if coordinates are on Wikidata then we can just change the behaviour of coord missing so that it uses those coordinates instead of populating the maintenance category? Yes, that could be possible. The only disadvantages I can think of:
 * It will still say "coord missing" in the wikicode which could be misleading
 * The template may not be placed in the usual place (e.g. at the top) that the coord template is usually placed.
 * &mdash; Martin (MSGJ · talk) 15:05, 7 February 2024 (UTC)
 * Agreed. coord missing should be changed to coord, see below for more detail. &mdash; The Anome (talk) 17:05, 7 February 2024 (UTC)

I'd be happy to support this, with one proviso, that the coord template be changed so that transclusion from Wikidata was gated via a "source=wikidata" parameter, so that it was clear on the enwiki side why the edit was made, and where the coordinates were being pulled from. So would become. &mdash; The Anome (talk) 17:02, 7 February 2024 (UTC)


 * That parameter is not required by the template, so are you just putting that in for explanatory purposes and the template will just ignore it? &mdash; Martin (MSGJ · talk) 17:07, 7 February 2024 (UTC)


 * Putting it there for explanatory and tracking purposes, so we can see how it got there and why. Right now, the template should ignore it, but might also be useful to let us add extra semantics to coord. For example: right now, if you add to an article that doesn't have coordinates on Wikidata, it blows up in an uninformative and mystifying way. Having this extra parameter might let the error message be improved, and also let such erroneous articles be put in a tracking category. From my viewpoint as a maintainer of the coord missing ecosystem, the more tracking metadata we have, the better. I'm committed to a long-term transition to Wikidata as the master source of geodata, but it's going to be a long process, and the more we can smooth the transition by having backward and forward compatibility during the transition process, the better. &mdash; The Anome (talk) 17:09, 7 February 2024 (UTC)
 * Okay thanks for the explanation. I support this approach. &mdash; Martin (MSGJ · talk) 17:27, 7 February 2024 (UTC)
 * Thanks. I'm glad you're stepping up for this; ecosystems made out of multiple single-purpose bots that use wikitext, templates and categories for orchestration are generally more robust that those which rely on complex multi-purpose bots. &mdash; The Anome (talk) 17:30, 7 February 2024 (UTC)
 * Updated this bot request to change to (e.g. this edit).  (Note that wikidata generates an error.)  GoingBatty (talk) 19:44, 7 February 2024 (UTC)
 * Thanks all, I noticed the lack of "where is this data coming from" earlier but got distracted and never came back to express my concern; this seems to deal with the issue in a suitable manner. Primefac (talk) 21:07, 7 February 2024 (UTC)
 * What sort of error?  seems unhelpful for populating a tracking category (if desired) &mdash; Martin (MSGJ · talk) 21:38, 7 February 2024 (UTC)
 * If the source parameter gives an error, the template can and should be changed to fix that. I've put forward a proposal on this on the template's talk page. &mdash; The Anome (talk) 21:40, 7 February 2024 (UTC)
 * @MSGJ, @The Anome: Go to 2024 Istanbul church shooting, click "Edit source", change  to , then click "Show preview", and you'll see a message at the top right of the article next to the coordinates which states Coordinates: Parameter: "source=" should be "source:". GoingBatty (talk) 22:30, 7 February 2024 (UTC)
 * Understood. I also support The Anome's proposals to change these strange parameters &mdash; Martin (MSGJ · talk) 08:51, 8 February 2024 (UTC)
 * I'm happy to use any new parameters in this request. GoingBatty (talk) 14:37, 8 February 2024 (UTC)
 * If it's the template deciding when it pulls data from WikiData (presumably when no parameters are supplied and data is available on WD), then wouldn't it make sense for the template/module to add things into a tracking cat, rather than it be a parameter. Because the parameter might not be accurate as it's not the source of truth, right? e.g.:
 * One could write, so the actual data isn't shown via WD but the parameter is still there
 * One could write, and the actual data is from WD but the source parameter hasn't been supplied, so is not in a tracking cat
 * ProcrastinatingReader (talk) 12:09, 15 February 2024 (UTC)

pending fix to the coord template (assuming that's the consensus here). Please deactivate the template/ping when the issue is resolved. ProcrastinatingReader (talk) 12:05, 15 February 2024 (UTC)