Template talk:Location

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 useEdit

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).

headings for {{Object location}}Edit

The definition says: In case of {{Object location}} template that might mean that we are looking at a South wall/side of the structure/object. I don't like the soft formulation that might mean. Prefer the straight that means. But, looking at a South wall/side means heading North with the camera ({{location}}), more or less. This is disturbing and confusing. My proposal is to disallow headings for {{Object location}}. Even more as there are actually only few uses. And even less with individual values. --Herzi Pinki (talk) 22:35, 29 June 2015 (UTC)

  • Symbol keep vote.svg Agree: headings for {{Object location}} don’t make enough immediate sense to be of any use. Any particular situations (like the inherent heading of some “aiming” items like windows or canons, or of linear structures) are more clearly covered by using text. -- Tuválkin 04:47, 30 June 2015 (UTC)
  • I agree they should be deprecated, or at least that the documentation should clearly describe any use-cases considered worth keeping. And some wording that advises use of the description field for other possible meanings would also be helpful. See my postings here a few months ago. Is there any way we can tell how many instances there are ‘in the wild‘ of this template with a heading parameter?—Odysseus1479 (talk) 06:30, 1 July 2015 (UTC)
That sounds reasonable for an image file with an obvious individual subject, where there is a single camera–target vector, but that’s not true of categories or gallery pages including multiple angles of view—where I would expect this version of the template to be most often used. (Camera locations wouldn‘t make sense in those contexts either.) Perhaps the documentation should draw this distinction; would you object to deprecating the parameter for the latter applications?—Odysseus1479 (talk) 19:20, 1 July 2015 (UTC)
I am all for depreciating heading info if used in category or gallery namespace. We might have some categories like Category:Stari Most viewed from north there category might have specific heading but that is quite rare. I think we should update documentation and may be run a bot to remove heading from categories like Category:Astronomical Centre Rijeka. --Jarekt (talk) 19:50, 1 July 2015 (UTC)
to disallow/discourage heading on categories and galleries would be an improvement. --Herzi Pinki (talk) 12:51, 9 July 2015 (UTC)
I cannot follow your idea of considering {{location}} and {{object location}} on an image defining a vector AND allowing heading on both. It will overdetermine the system and could help to find geometric errors we would not have without heading. Ok, we could run some plausi to find inconsistencies, if there were enough heading values. In my experience copying of {{location}} or manual determination is error prone, users are even challenged with the difference between {{location}} and {{object location}}. --Herzi Pinki (talk) 12:51, 9 July 2015 (UTC)
  • Disagree Theoretically useful for Ships (Port and starboard), Statues (Forward facing), Theaters (Stage Left/Right), Airport runways (Direction of takeoff), Ski ramps, Waterfalls (presumably the direction of flow, not the staring direction), or the direction of home plate. This directionality is the reason I didn't flag it in my ghel reports. Just because people are unable to document it, doesn't mean its a bad idea. —Dispenser (talk) 02:26, 6 July 2015 (UTC)

I fear there are two contradicting semantics around: the south side of a building has a heading S, while the heading of a runway could have any heading. In case of a statue it could be the statue is heading (facing) S or it is the side of the statue shown on the photo (maybe the back side) heading S. If heading for {{object location}} is kept, documentation should be precise and not encourage both semantics. If I would have to decide, I would prefer to give heading of objects the meaning of the direction the object is moving, or the direction, other objects are moving on the object (planes, cars) (as Dispenser argued) and not the meaning of heading (as Jarekt argued). This will also remove overdetermination. For waterfalls, I would not add heading, because it is always the same: down. :-) --Herzi Pinki (talk) 12:51, 9 July 2015 (UTC)

{{object location}} has been around for a long time and so far the meaning of heading meant only one thing: the heading of the camera, so is a photograph has both {{location}} and {{object location}} than headings are the same. This definition makes little sense for categories unless you have category like Category:Chillon viewed from north which has specific viewing direction. I do not think we should change the current definition written in Template:Location/attribute documentation, but we can clarify it if needed. We can also add something about discouraging usage of "heading" in category namespace. Last week I looked through all usages of "heading" in categories and removed it if it was not valid. --Jarekt (talk) 14:26, 9 July 2015 (UTC)
Thanks, hopefully the default for objects is now "no heading at all". –Be..anyone 💩 02:14, 28 April 2016 (UTC)


Hi all, is there a version of this template that takes the coordinates from Wikidata? --Arnd (talk) 15:37, 17 December 2015 (UTC)

Not at the moment. How would it be used? --Jarekt (talk) 17:12, 17 December 2015 (UTC)

I just think that it would be helpful to have geographical categories with coordinates. When properly linked the Wikidata coordinates could be used as category coordinates. See also Commons:Village pump#Many categories lacking latitude/longitude. --Arnd (talk) 18:20, 17 December 2015 (UTC)

Hi Jarekt and others. Some time ago User:ԱշոտՏՆՂ helped me to create a prototype that shows how a category can be enriched by the coordinates from Wikidata. It should be added to each category with a connected Wikidata item that also contains coordinates. Of course, before the layout must be aligned. Do you think it would make sense to continue this approach? Best regards, --Arnd (talk) 17:16, 27 April 2016 (UTC)

  • There are 135k categories (https://tools.wmflabs.org/autolist/index.php?language=en&project=wikipedia&category=&depth=12&wdq=claim[625]%20AND%20link[commonswiki]&pagepile=&wdqs=&statementlist=&run=Run&mode_manual=or&mode_cat=or&mode_wdq=not&mode_wdqs=or&mode_find=or&chunk_size=10000) that benefit from it. --Arnd (talk) 18:27, 28 April 2016 (UTC)
Arnd, I am working on Category:Wikidata access templates. Now {{Data|item=Q90|property=P17}} gives "France" as "country" of "Paris", but {{Data|item=Q90|property=P625}} which should return geocoordinates of Paris does not work here or on wikidata. I am sure we will be adding Wikidata to many templates including this one, but this seems like it might be more tricky. --Jarekt (talk) 17:42, 27 April 2016 (UTC)
You can get latitude with {{#invoke:Wikidata|formatStatementsE|property=P625|item=Q90|displayformat=latitude}} (same for longitude). I think the most convenient solution is to make use of that in Module:Coordinates. At least it is how I did it in frwiki. --Zolo (talk) 21:34, 27 April 2016 (UTC)
{{Location}} family of templates can take now an optional "Wikidata" parameter which is an alternative to lat/lon. For example {{Location/sandbox|wikidata=Q90}} gives
Camera location 48° 51′ 36″ N, 2° 20′ 40″ E View this and other nearby images on: OpenStreetMap - Google Earth info
for Paris location. It is also used at Category:Paris. --Jarekt (talk) 14:29, 29 April 2016 (UTC)
Thanks. Actually that makes sense in {{Object location}} but not sure it does in {{Location}} which is supposed to give the camera location: it's hard to see how the camera location can come from Wikidata.--Zolo (talk) 15:10, 29 April 2016 (UTC)
You are right. The only case I can think about are locations of some famous enough photographs to have their own wikipadia article or wikidata entry. Lattely I was working on documenting work many amazing arm-chair detectives are doing trying to find locations of WWII images. Many famous photographs from Warsaw Ghetto Uprising can be geo-codded, and some might have articles written about them. Same with moon landing photographs, etc. --Jarekt (talk) 02:38, 30 April 2016 (UTC)
Then it should be coordinates of the point of view (P1259) - to be distinguished from the location where the photo is stored. One way of supporting it that would be through a wikidatataquery argument that could ovverride the default use of coordinate location (P625) in Module:Coordinates. I could do it but I was lazy about going through the procedure for retaining my admin rights, and now it seems that I am going to miss them... -Zolo (talk) 06:32, 30 April 2016 (UTC)

Hm, two questions i have. First, would it make sense to add wikidata coordinates to all geographical categories? Second, why not taking the coordinates from the Wikidata item that is already connected to the category instead providing it as an extra paramter? Regards, --Arnd (talk) 17:07, 19 May 2016 (UTC)

We probably should rewrite {{On Wikidata}} or write new template to add coordinates to place categories, {{Authority Control}} to people categories. Also add Creator and Institution templates when they exist. May be even add up-to-date interwiki links. All with one wikidata q-code. --Jarekt (talk) 02:16, 20 May 2016 (UTC)

Edit request: Heavily used templateEdit

{{Edit request}} Please add <noinclude>{{heavily used template}}</noinclude> to the top of this high use template (example). Riley Huntley (talk) 08:38, 30 April 2016 (UTC)

✓ Done --Jarekt (talk) 13:23, 2 May 2016 (UTC)


Hi, it seems that the direction is not shown properly anymore... i am seeing some text instead "Compass-icon bb...". Please fix it. --Arnd (talk) 16:43, 30 April 2016 (UTC)

I also noticed this, see for example File:Domprovstegården_name_plate_Viborg_2016-04-01-6014.jpg. The location template there has been generated using the Geolocator tool mentioned on COM:GEO. -- Slaunger (talk) 16:55, 30 April 2016 (UTC)
Jarekt, did you or someone else change something in a related module or template? --Arnd (talk) 19:48, 30 April 2016 (UTC)
Yes check.svg Resolved@Aschroet: I went through the related modules/templates and corrected the error. Riley Huntley (talk) 20:19, 30 April 2016 (UTC)
Return to "Location" page.