Template talk:Location/2014

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

Template rewrite using Lua

Slowly but surely, I was tinkering with rewriting the logic of the location template family using lua. The new code will make the code much easier to maintain. I would like to reuse the same code for all the coordinate templates: {{Location}}, {{Object location}}, {{Globe location}}, {{Inline coordinates}}, {{Institution/coordinates}}, etc. On the beginning I am planning to reproduce exactly current templates, then I would like to look into expanding it. For example adding support for getting coordinates from Wikidata, switching to more icons and less text, etc. Current design can be found at {{Location/sandbox}}, {{Location/core}}, and mostly at Module:Coordinates. Please feel free to review the code and suggest changes. The code is still missing some of the invisible content like categories and tags. --Jarekt (talk) 15:22, 9 January 2014 (UTC)

{{Globe location}} is using Module:Coordinates now. Please have a look at couple of files and make sure there are no issues, before I convert {{Object location}}. --Jarekt (talk) 18:13, 21 January 2014 (UTC)
{{Object location}} (and {{Object location dec}} which redirects to {{Object location}}) are using Lua now. Alert me if there are any issues. --Jarekt (talk) 14:34, 22 January 2014 (UTC)

spelling

{{Editprotected}} I don't know how this Lua crap works, and where the template code now resides, but it's spelled OpenStreetMap. Singular. --NE2 (talk) 03:34, 24 January 2014 (UTC)

Fixed That was my mistake. Thanks for pointing it out. By the way, as it is mentioned in the documentation, all the translations are in Module:I18n/coordinates which can be edited by autoconfirmed users. --Jarekt (talk) 04:14, 24 January 2014 (UTC)
Lattiude. Jim.henderson (talk) 00:57, 26 January 2014 (UTC)
Fixed--Jarekt (talk) 04:37, 26 January 2014 (UTC)

Google Maps ads

Why are in this template ads to Google Maps? How much does Google pay for it? 87.78.26.59 18:24, 2 March 2014 (UTC)

There's no advertisement. As I suspect you realise, Google obviously does not pay for the presence of the link. What they do, however, is to provide an online map service with global coverage and an API to overlay icons with links to other geocoded photos from Commons. That's pretty rare. Open Streetmap provides the only comparable service that I know of, and we provide a link to that site as well (again, obviously without compensation). Does this trouble you greatly? What would you suggest as an improvement? LX (talk, contribs) 19:28, 2 March 2014 (UTC)

Add a notes or references parameter

The user has no way to indicate e.g., that he got the coordinates from even something as short as "[1]" and still have it fit nicely in the box. Most important for Template:Object location. Jidanni (talk) 19:48, 13 April 2014 (UTC)

Estimated location-tag?

Hello, I like this template. I tried to add pictures not made by me with this template. I think I did good, but I would like to have the opportunity to mark the coordinates as estimated and possibly wrong, so others get noticed about this fact. Would that be possible? --Pustekuchen2014 (talk) 21:55, 14 April 2014 (UTC)

We do not have Estimated location template. I guess people were adding verbal location descriptions in such a case or using {{Object location}} to identify objects in the image. --Jarekt (talk) 03:16, 15 April 2014 (UTC)
Yes. For my own photos I am usually confident to about one tenth arcsecond or my own length, but for pictures a hundred years old I usually show a one-second or even ten-second precision (end the number of seconds in a zero) and sometimes words to explain my uncertainty. Jim.henderson (talk) 13:03, 16 April 2014 (UTC)
We could add a precision parameter which would affect how the number is displayed. However in the past I remember a lot of opposition to non-precise coordinates, especially for showing the location on the maps, but we could tag them somehow different so they are not displayed on a map. --Jarekt (talk) 01:31, 17 April 2014 (UTC)
we could use the source: parameter for that, like source:estimate --Dschwen (talk) 04:39, 17 April 2014 (UTC)
Dschwen, if you handle the map part to accept (and ignore) source:estimate I can volunteer to alter the display part. I would propose to add parameter "precision" (any better names) measuring location uncertainty in meters. Than we would need to pick a threshold (somewhere between 10 and 100m ?) which would result in source:estimate and location not showing up on maps, (or showing as a circle with precision radius?). --Jarekt (talk) 02:42, 18 April 2014 (UTC)
The idea has potential, but different purposes and locations have greater and lesser needs for precision. For example, an urban area like Alexandria has a far greater density of distinctive features and photos than a wilderness area like southeastern Libya, and maps of a wilderness less often need so much precision. Better I think, to express grades of precision rather than yes / no. The scale might be 1, 10, 100, 1000 or 10000m; or as logarithms thereof; viz E1, E2, E3, E4. One could also make a list of words, arm length, truck length and perhaps someone can think of appropriate words beyond that. A picture of a distant mountain can benefit from a camera location on a map of the plain, even if it would take me hours to walk around the area of uncertainty, whilst such a rough location of a photo of a subway station would serve few maps. Jim.henderson (talk) 23:21, 19 April 2014 (UTC)
I added "prec" parameter to the template. User:Dschwen is it OK to start to use source:estimate, and what threshold to use it?--Jarekt (talk) 02:46, 26 April 2014 (UTC)
Jarekt and Dschwen, I think the prec parameter is very interesting and potentiallty very valuable - could be used to display a "circle of uncertainty" of a camera location on a map for instance. May I ask for the documentation of this parameter to be fleshed out a bit more in the documentation? Especially how to specify a unit. E.g., how to you specify a precision of 40 m? Is it "|prec=40}}", "|prec=40m}}", or "|prec=40 m}}"? Is "|prec=1.2 km}}" also possible or "|prec=40 ft}}" for those not familiar with estimating precision in metric units?? --Slaunger (talk) 20:05, 27 July 2014 (UTC)

Moved object, how to proceed?

Hi, I want to add a location to an archaeological monument, it is registered at some place

This is a picture of an archaeological site or a monument in Sweden, number 10094600870001 in the RAÄ Fornsök database.

, however it was moved later to a museum at another place

Object location57° 38′ 22.93″ N, 18° 17′ 32.84″ E Kartographer map based on OpenStreetMap.View all coordinates using: OpenStreetMapinfo

. How should I do? Macuser (talk) 17:35, 5 May 2014 (UTC)

Dead blue ball

Earlier this year, clicking on the blue ball brought up a small map. This week, a blank square. Did something break? Jim.henderson (talk) 14:08, 2 July 2014 (UTC)

A lot of links were changed yesterday from toolserver to toollabs. I might have missed something (I forgot about the "blue ball" and did not test it) or something not working right on toollabs. I will look into it. --Jarekt (talk) 14:18, 2 July 2014 (UTC)
I copied old version of the Module:Coordinates code to Module:Coordinates/sandbox and the calls using old version (here) also show "blank square". So I guess it is time to ping @Dschwen: : Daniel, can you look into it? --Jarekt (talk) 14:26, 2 July 2014 (UTC)
Ugh, the blue ball map should work. Something/someone f&^$ed up the config files for apache2 on labs. Fixed now. --Dschwen (talk) 17:10, 3 July 2014 (UTC)
Thanks --Jarekt (talk) 17:13, 3 July 2014 (UTC)
Splendid. I didn't report also in en, where I use it less, that it wasn't working there, guessing that it was probably the same thing. I clicked on a ball there, five minutes ago, and it was alive so I looked here, Thank you. Jim.henderson (talk) 18:25, 3 July 2014 (UTC)

Quotation marks problem

It looks like this template doesn't handle files with names containing quotation marks, see File:Spinnekop molen "De Wicher" in de Weerribben 1.jpg. Can someone look into that? LittleWink (talk) 17:04, 8 July 2014 (UTC)

I will. Thanks for reporting this issue. --Jarekt (talk) 18:00, 8 July 2014 (UTC)
Fixed Thanks again --Jarekt (talk) 19:30, 8 July 2014 (UTC)
Thank you for the fix! LittleWink (talk) 17:01, 9 July 2014 (UTC)

Weitere Bilder

Der Satz weitere Bilder auf OpenStreetMap - Google Maps - Google Earth sollte auf weitere Bilder bis zum 30. November 2013 auf OpenStreetMap - Google Maps - Google Earth geändert werden, da alle jüngeren Bilder nicht angezeigt werden und ein Ende dieses Problems nicht absehbar ist. --störfix (talk) 07:26, 3 September 2014 (UTC)

Can someone translate? Google Translate version is not clear. --Jarekt (talk) 11:45, 4 September 2014 (UTC)
pictures younger than 2014-11-30 are not on the GeoCommons layer for OpenStreetMap, Google maps or Google Earth. This information should be given by the text. [2] --störfix (talk) 15:54, 4 September 2014 (UTC)
According to your link the problem should correct itself soon. --Jarekt (talk) 16:03, 4 September 2014 (UTC)
soon?? The problem exist since 9 month. --störfix (talk) 19:01, 4 September 2014 (UTC)

location broken?

{{location|48.18367|16.312481|region:AT-9}} ->

Camera location48° 11′ 01.21″ N, 16° 18′ 44.93″ E Kartographer map based on OpenStreetMap.View all coordinates using: OpenStreetMapinfo

in namespace template_talk, but in namespace file it produces: additional characters (see File:Palace_of_Schönbrunn_4.jpg):

{{#coordinates:primary| 48.187491| 16.256633|type:camera_}}

I was searching a bit, but I did not get an idea of the root cause. So I need help. --Herzi Pinki (talk) 15:04, 27 October 2014 (UTC)

All files add mw:Extension:GeoData tags, but you can not see them. I will try to figure out why you can see those. --Jarekt (talk) 17:40, 27 October 2014 (UTC)
Actually I can not reproduce it anymore. It seems to have fixed itself. --Jarekt (talk) 17:45, 27 October 2014 (UTC)
Hi Jarekt, thanks for caring. It is gone also for me. Servers had hickup. --Herzi Pinki (talk) 17:49, 27 October 2014 (UTC)

caused by CirrusSearch outage Bugzilla72559 --Herzi Pinki (talk) 23:38, 27 October 2014 (UTC)

Checkmark This section is resolved and can be archived. If you disagree, replace this template with your comment. Herzi Pinki (talk) 17:49, 27 October 2014 (UTC)

Broken again, perhaps? It hasn't brought up Google Earth for me today or yesterday, though Google Maps and OSM work. Jim.henderson (talk) 18:14, 6 November 2014 (UTC)

And it started working again. It's an intermittent service. Jim.henderson (talk) 23:43, 9 November 2014 (UTC)
Failed again. Hasn't worked yesterday or today for me. Jim.henderson (talk) 21:45, 12 November 2014 (UTC)
Working again for several hours now. Thanks again. Jim.henderson (talk) 02:45, 14 November 2014 (UTC)

Nowrap, please!

My screen is set to 1152 px wide and still I see the lat&long field of this template, the most important one, wrapped to two lines, which looks bad and is harder to read. Can we have a no-wrap / NOBR thingy added to the code, please? (This doesn’t happen to me with {{Location}}, only with {{Object location}}, but people will narrower screens will have the same issue with it, too.) -- Tuválkin 16:37, 7 November 2014 (UTC)

I am looking at File:Kerk Wijhe.jpg and lat&long field is in one line. By the way, both {{Location}} and {{Object location}} use almost the same code Module:Coordinates so if there is a difference between them it should be in the actual {{Location}} and {{Object location}} templates calling the module. Feel free to clone one of them into /sandbox subtemplate and modify it as you wish. If some other configuration works better, than you can propose to change it. --Jarekt (talk) 17:20, 7 November 2014 (UTC)