Template talk:Location

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

This Template is intended to complement Template:Information.

Missleading silent ignoring of syntax errors in location

[edit]

Hi, I have added the following wrong construct to a file description

{{Location|46.90380,10.47712}}

(komma instead of pipe), and there was no error message. Instead the wrong coordinates from SDC (or Wikidata?) were shown. As I do not have a proper intuitive feeling on how to convert decimal to degree, minute, second representation, a quick glimpse on the result would not help. Only following the shown coordinates to a map made me wonder, why my change did not have the expected effect.

To avoid these kind of errors, please do not silently ignore syntax errors in coordinates and replace them silently from values from some other source. Show the syntax error in any case, it has to be fixed. When there is no SDC (or Wikidata?) behind, the above will render at least recognizably broken:

Camera location0° 00′ 00″ N, 0° 00′ 00″ E Kartographer map based on OpenStreetMap.View all coordinates using: OpenStreetMapinfo

best --Herzi Pinki (talk) 12:43, 8 January 2024 (UTC)[reply]

There are few, but some occurrences [1]. My complaint is not about to fix those, but to do some kind of error message in those cases (e.g. There is a syntax error in the above coordinates, those stored at Wikidata are shown instead (...). Remove local redundant coordinates after having reconciled them with wikidata. ). best --Herzi Pinki (talk) 15:53, 8 January 2024 (UTC)[reply]

Template Globe location doesn't work for non earth globes

[edit]

The talk page for Template talk:Globe location redirects here, so I am posting my issue here:

In the documentation of this template ("Location") it states "{{Globe location}} used to provide object location on other globes, like Moon, Mars, etc." and in the documentation of Template:Globe location there are examples for that:

{{Globe location|34.02427|-116.15830|moon}}

which creates

Location34° 01′ 27.37″ N, 116° 09′ 29.88″ W Kartographer map based on OpenStreetMap.View all coordinates using: OpenStreetMapinfo


and

{{Globe location|34|1|27.37|N|116|9|29.88|W|mars}}

which creates

Location34° 01′ 27.37″ N, 116° 09′ 29.88″ W Kartographer map based on OpenStreetMap.View all coordinates using: OpenStreetMapinfo

However, both links show the earth in Geohack. The problem is that the template creates the parameter "globe:Earth_moon" and "globe:Earth_mars" in the URLs respectively, which causes the problem. If the output was "globe:moon" or "globe:mars" it would work. This should be fixed by somebody who has the right to edit the code of the Module:Coordinates (and knows what they are doing), as the template itself just calls {{#invoke:Coordinates| LocationTemplateCore |mode=globe}}.

Also the documentation of the Template:Globe location should be expended to better describe the use of the globe parameter, and not just have it hidden in the example. But this should be done, once the main issue is fixed.

A workaround would be to directly call the function of the module that creates the link: {{#Invoke:Coordinates | GeoHack_link| lat=34.02427 | lon=-116.15830 | globe=Mars }}} will create 34° 01′ 27.37″ N, 116° 09′ 29.88″ W

Thanks, DFichtmueller (talk) 09:57, 12 January 2024 (UTC)[reply]

The code provided in the examples was incorrect and I've updated this now.
{{Globe location|34.02427|-116.15830|globe=moon}}
which creates
Location on Moon34° 01′ 27.37″ N, 116° 09′ 29.88″ W View all coordinates using: Google Mapsinfo
and
{{Globe location|34|1|27.37|N|116|9|29.88|W|globe=mars}}
which creates
Location on Mars34° 01′ 27.37″ N, 116° 09′ 29.88″ W View all coordinates using: Google Mapsinfo
Still, I agree the documentation could be further improved in that regard. --Schlurcher (talk) 20:46, 13 January 2024 (UTC)[reply]
@Schlurcher: Thank you, it hadn't occur to me, that this is an issue with the example and not with the template, but it was hard to judge due to the lack of documentation. Anyways, this is a much easier fix than expected and solves the issue. Thanks again. --DFichtmueller (talk) 15:53, 15 January 2024 (UTC)[reply]

attribute elevation

[edit]

In some cases (e.g. on steep mountains), it may be useful to add the elevation of the camera position (it was done e.g. here, but with a wrong vertical datum). Has this ever been considered? Is there reason to avoid it? The use of the correct vertical datum may be a challenge. --Kuhni74 (talk) 09:04, 7 February 2024 (UTC)[reply]

Zoom for camera location

[edit]

Currently this ends up being 16 on Geohack. For correctly set coordinates, one ends up with a large map. I'd suggest to add "zoom=18" to the link for geohack. Enhancing999 (talk) 14:16, 11 May 2024 (UTC)[reply]

Cool it with the DMS, get with the DD

[edit]

I am saying on output don't show the godforsaken DMS anymore. It's not 1968.

Or OK, add a Preference, for people who can't live with the new default: Decimal Degrees!

Also, if DMS is syntax #2 on input, then why is it #1 on output??

Jidanni (talk)

Please allow adding text for location and/or parse that from the geolocation

[edit]

For example in this file File:Bee morning glory visitors.webm, the user added "Franklin County Ohio, USA" below the template. The same has been for most of the other videos by the user as well as by many other users.

Please adding text for the location directly to the template and/or (even better) automatically parse that from the geolocation which needs to first be clicked to see where that is (such as the country). Prototyperspective (talk) 11:23, 1 June 2024 (UTC)[reply]

This template is for geocoding files and no text should be added. Location can be added in the description, as a category and in structured data. For reverse geocoding, see Commons:Reverse geocoding. Multichill (talk) 15:46, 1 June 2024 (UTC)[reply]
Thanks for this info. Please consider this an edit/change request: I'm requesting that the location is shown in the "Camera location" field of the "Summary" file description template, rather than (only) anywhere else such as the "Description" field. Prototyperspective (talk) 17:57, 1 June 2024 (UTC)[reply]