From Wikipedia, the free encyclopedia

New to bots on Wikipedia? Read these primers!

Operator: GoingBatty ( talk · contribs · SUL · edit count · logs · page moves · block log · rights log · ANI search)

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

Function overview: Replace {{ coord missing}} with {{ coord|source:wikidata|display=title}}

Automatic, Supervised, or Manual: Automatic

Programming language(s): AutoWikiBrowser

Source code available: AWB

Links to relevant discussions (where appropriate): Wikipedia:Bot requests#Using coordinates on Wikidata

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 19,876 articles tagged with {{ coord missing}}, but they all have coordinates available on Wikidata. This bot would replace {{ coord missing}} with {{ coord|source:wikidata|display=title}} 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 MSGJ 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) reply

@ 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) reply
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) reply
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:
  1. It will still say "coord missing" in the wikicode which could be misleading
  2. The template may not be placed in the usual place (e.g. at the top) that the coord template is usually placed.
— Martin ( MSGJ ·  talk) 15:05, 7 February 2024 (UTC) reply
Agreed. {{ coord missing}} should be changed to {{ coord}}, see below for more detail. — The Anome ( talk) 17:05, 7 February 2024 (UTC) reply

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 {{ coord missing|Name of region}} would become {{ coord|source=wikidata|display=title}}. — The Anome ( talk) 17:02, 7 February 2024 (UTC) reply

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? — Martin ( MSGJ ·  talk) 17:07, 7 February 2024 (UTC) reply
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 {{ coord|display=title}} 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. — The Anome ( talk) 17:09, 7 February 2024 (UTC) reply

Okay thanks for the explanation. I support this approach. — Martin ( MSGJ ·  talk) 17:27, 7 February 2024 (UTC) reply
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. — The Anome ( talk) 17:30, 7 February 2024 (UTC) reply
@ The Anome and MSGJ: Updated this bot request to change to {{ coord|source:wikidata|display=title}} (e.g. this edit). (Note that |source=wikidata generates an error.) GoingBatty ( talk) 19:44, 7 February 2024 (UTC) reply
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) reply
What sort of error? source:wikidata seems unhelpful for populating a tracking category (if desired) — Martin ( MSGJ ·  talk) 21:38, 7 February 2024 (UTC) reply
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. — The Anome ( talk) 21:40, 7 February 2024 (UTC) reply
@ MSGJ, @ The Anome: Go to 2024 Istanbul church shooting, click "Edit source", change source:wikidata to source=wikidata, 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) reply
Understood. I also support The Anome's proposals to change these strange parameters — Martin ( MSGJ ·  talk) 08:51, 8 February 2024 (UTC) reply
I'm happy to use any new parameters in this request. GoingBatty ( talk) 14:37, 8 February 2024 (UTC) reply
@ The Anome and MSGJ: 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.:
  1. One could write {{ Coord|57|18|22|N|4|27|32|W|source=wikidata}}, so the actual data isn't shown via WD but the parameter is still there
  2. One could write {{ Coord}}, 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) reply

 On hold. 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) reply

From Wikipedia, the free encyclopedia

New to bots on Wikipedia? Read these primers!

Operator: GoingBatty ( talk · contribs · SUL · edit count · logs · page moves · block log · rights log · ANI search)

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

Function overview: Replace {{ coord missing}} with {{ coord|source:wikidata|display=title}}

Automatic, Supervised, or Manual: Automatic

Programming language(s): AutoWikiBrowser

Source code available: AWB

Links to relevant discussions (where appropriate): Wikipedia:Bot requests#Using coordinates on Wikidata

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 19,876 articles tagged with {{ coord missing}}, but they all have coordinates available on Wikidata. This bot would replace {{ coord missing}} with {{ coord|source:wikidata|display=title}} 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 MSGJ 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) reply

@ 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) reply
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) reply
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:
  1. It will still say "coord missing" in the wikicode which could be misleading
  2. The template may not be placed in the usual place (e.g. at the top) that the coord template is usually placed.
— Martin ( MSGJ ·  talk) 15:05, 7 February 2024 (UTC) reply
Agreed. {{ coord missing}} should be changed to {{ coord}}, see below for more detail. — The Anome ( talk) 17:05, 7 February 2024 (UTC) reply

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 {{ coord missing|Name of region}} would become {{ coord|source=wikidata|display=title}}. — The Anome ( talk) 17:02, 7 February 2024 (UTC) reply

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? — Martin ( MSGJ ·  talk) 17:07, 7 February 2024 (UTC) reply
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 {{ coord|display=title}} 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. — The Anome ( talk) 17:09, 7 February 2024 (UTC) reply

Okay thanks for the explanation. I support this approach. — Martin ( MSGJ ·  talk) 17:27, 7 February 2024 (UTC) reply
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. — The Anome ( talk) 17:30, 7 February 2024 (UTC) reply
@ The Anome and MSGJ: Updated this bot request to change to {{ coord|source:wikidata|display=title}} (e.g. this edit). (Note that |source=wikidata generates an error.) GoingBatty ( talk) 19:44, 7 February 2024 (UTC) reply
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) reply
What sort of error? source:wikidata seems unhelpful for populating a tracking category (if desired) — Martin ( MSGJ ·  talk) 21:38, 7 February 2024 (UTC) reply
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. — The Anome ( talk) 21:40, 7 February 2024 (UTC) reply
@ MSGJ, @ The Anome: Go to 2024 Istanbul church shooting, click "Edit source", change source:wikidata to source=wikidata, 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) reply
Understood. I also support The Anome's proposals to change these strange parameters — Martin ( MSGJ ·  talk) 08:51, 8 February 2024 (UTC) reply
I'm happy to use any new parameters in this request. GoingBatty ( talk) 14:37, 8 February 2024 (UTC) reply
@ The Anome and MSGJ: 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.:
  1. One could write {{ Coord|57|18|22|N|4|27|32|W|source=wikidata}}, so the actual data isn't shown via WD but the parameter is still there
  2. One could write {{ Coord}}, 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) reply

 On hold. 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) reply


Videos

Youtube | Vimeo | Bing

Websites

Google | Yahoo | Bing

Encyclopedia

Google | Yahoo | Bing

Facebook