Template talk:Location

From Wikimedia Commons, the free media repository
Jump to: navigation, search
Info non-talk.svg Template:Location has been protected indefinitely because it is a highly-used or visible template. Use {{Edit request}} on this page to request an edit.
Please test any changes in the template's /sandbox or /testcases subpages, or in a user subpage, and consider discussing changes at the talk page before implementing them.

This Template is intended to complement Template:Information.

Example for use[edit]

See: Image:Hildesheim-Hoher.Weg.Huckup.01.JPG

Syntax {{Location|Degree|Minute|Second|Latitude|Degree|Minute|Second|Longitude|Information attributes}}
Example {{Location|52|09|03.70|N|9|57|02.79|E|type:landmark_region:DE-NI_scale:5000}}


The example is for a landmark in the region Germany (DE), Lower Saxony (Niedersachsen NI). By scale you request the mapping program to render the map in a scale of 1/5000.) Information attributes on landmark and region should always be added. Scale is an optional parameter and is not necessarily required. To find adequate parameters for other regions of the Earth, please look at the project pages in the English Wikipedia (w:en:Wikipedia:WikiProject Geographical coordinates or in the German Wikipedia (w:de:Wikipedia:WikiProjekt Georeferenzierung).


The explanation of dim: vs. scale: vs. prec= is rather lousy. Apparently prec=1000 suppresses the display of ss in ddd:mm:ss, good enough for my purposes. But dim:3km has no effect for the openstreetmap zoom=16. I need a list for zoom=nn use TBD:value, maybe some combo of dim/scale if that's needed for other sources.
Writing that I suddenly grok what "OSM" obviously means, after two weeks of ignoring the TLA.:tongue:Be..anyone (talk) 10:10, 9 January 2015 (UTC)

Zoom and scale are the attributes and have no effect on the display of the data on wikipedia pages, I have no idea what they are used for in the database. Parameter "prec" only affect the display. --Jarekt (talk) 22:24, 10 January 2015 (UTC)
Okay, so no visible effect for OSM-URL is as it should be. And dim: is almost clear, but I miss a clue when I'd use scale: at all. –Be..anyone (talk) 14:48, 11 January 2015 (UTC)
New test results: The type:forest etc. is displayed by GeoHack, but has no effect on the OSM zoom (via GeoHack.) The scale is used by GeoHack, and OSM via GeoHack uses zoom 13 for scale:50000, zoom 14 for scale:30000, zoom 15 for scale:10000, and zoom 16 without scale. –Be..anyone (talk) 20:32, 20 January 2015 (UTC)
The reasons why prec=1000 always suppresses the seconds are explained on Commons:Geocoding#Precision, 1000m is always more than 30sec (untested: 33m might have the same effect, if more than 1sec is enough to get rid of seconds.) –Be..anyone (talk) 20:41, 20 January 2015 (UTC)


What is this, and where is it documented? Wild guess, something like the obsolete (?) type=landmark mentioned above in an old comment. –Be..anyone (talk) 10:16, 9 January 2015 (UTC)

class:object is part of the interface between the template and the database, not between users and the template. I do not know if it is documented somewhere. --Jarekt (talk) 22:26, 10 January 2015 (UTC)
I'll test type:landmark when I stumble over one, or find the list of well-known types again. –Be..anyone (talk) 14:43, 11 January 2015 (UTC)
As I recall user:Dschwen was saying at some point that "type:landmark" was not doing anything and should be removed. I started removing some unused attributes, but had to stop due to outrage of people who felt that I was removing valuable information. --Jarekt (talk) 22:34, 11 January 2015 (UTC)
Wild guess, maps use different markers for different location types, so far it's no nonsense. But if the info is never used/verified/whatever, it's pointless. Maybe the docu should say for backwards compatibility with deprecated unused info such as type:landmark.Be..anyone (talk) 04:56, 12 January 2015 (UTC)

Too often out of service[edit]

The map tools linked by "View this and other nearby images on:" are (in last years) too often out of service (maybe, more time is out of service than in service). That causes that many of Commons users don't know what the functions should really do. I propose to add a noticeable warning about it to the text of the template. Would be possible also any detection of the tool which can e.g. red/green icon dependently signalizing that the tool is out/ready? --ŠJů (talk) 08:59, 27 January 2015 (UTC)

Wait a moment, {{editprotected}} is for precise instructions what should be done. The template only invokes Module:Coordinates, and I don't get how this module should display a warning. Or do you want a warning in {{location/doc}}? The documentation isn't protected. Collecting good coordinates for MRD certainly works, GeoHack, OSM, Google Maps, and the mini atlas also tend to work (or rather, sometimes this or that doesn't, but the rest works). –Be..anyone (talk) 10:33, 27 January 2015 (UTC)
By my rough estimate, in 7 of 10 attempts to use the function, the "other nearby images" are not displayed (although the linked maps are opened in correct place with correct coordinates). In rare lucky cases only.
The explaining warning is needed to be displayed at the image pages bellow the links in the template. It doesn't matter whether through Module:Coordinates or directly through the template. As i know, texts from the documentation page are not displayed in the template. The precise formulation of the warning depends on the fact whether is possible or not to detect readiness of the tool. --ŠJů (talk) 00:52, 28 January 2015 (UTC)
I diverted this discussion to Module talk:Coordinates. --ŠJů (talk) 00:58, 28 January 2015 (UTC)