Template talk:Location
![]() | Template:Location has been template 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.
Adding Template:Object location with Visual Editor does not work properly / parameters Latitude and Longitude[edit]
Hi, adding template {{Object location}} via the Visual Editor menu: insert template offers 2 parameters Latitude and Longitude, which results in inserted code like
- {{Object location|Latitude=50° 37′ 50.63″ N|Longitude=6° 37′ 50.63″ E}}
and results in
- coordinates not displayed properly and
- Error: Invalid parameters! (coordinates are missing or not numeric) Error in template * unknown parameter name (Template:Object location): 'Longitude; Latitude'
while the following variants work properly
- {{Object location|1=50° 37′ 50.63″ N|2=6° 37′ 50.63″ E}}
- {{Object location|50° 37′ 50.63″ N|6° 37′ 50.63″ E}}
Especially for users new to coordinates (and assuming such users will also tend to use the Visual Editor), this is annoying. Neither Latitude nor Longitude is a legal parameter name, so it should not be inserted at all. I assume that the templatedata is wrong. @Meru7: , who stumbled across this behavior. best --Herzi Pinki (talk) 22:01, 6 October 2021 (UTC)
- @Herzi Pinki: I’ve simply removed TemplateData, the two syntax versions make it impossible to properly model the template parameters in TemplateData. No TemplateData is still better than broken TemplateData. —Tacsipacsi (talk) 22:10, 6 October 2021 (UTC)
LUA error[edit]
I am experiencing an error "Lua error in Module:Coordinates at line 168: attempt to index local 'entity' (a nil value)" when adding this template to some pictures, see for example File:Dorflinde Prem.jpg. It worked fine here: File:Bildstock Helfenwang.jpg. I use this template because even if my original pictures were taken with GPS enabled, the location info gets lost when I use an image editor to crop and resize the pictures, so I manually add the location with this template. The difference between the two pictures is that I edited the first one with GIMP and the second one with gThumb. --Bruno413 (talk) 09:38, 30 June 2022 (UTC)
- It seems to work now, even if I haven't changed anything in the file. It might be related to that I cleared my browser cookie cache. --Bruno413 (talk) 13:31, 30 June 2022 (UTC)
- No, I think it was fixed by Jarekt’s edit to the module. —Tacsipacsi (talk) 17:07, 30 June 2022 (UTC)
Display sequence[edit]
It's not anyway serious, just irritating a bit: when as well Camera location and Object location are given, in my logic is the first one the camera, and the second one the object. I know that it can be seen the other way - first I glance an object, and then I grip my camera.
So I do not know whether it will be worth any effort to change that sequence (which is now object - camera). I just would like it more the other way.
See as an example Blick von der Teufelskanzel.jpg -- sarang♥사랑 14:31, 12 August 2022 (UTC)
- @Sarang: , That order is encoded in {{Inform}} used by File:Blick von der Teufelskanzel.jpg. --Jarekt (talk) 11:33, 2 September 2022 (UTC)
link to help[edit]
@Jarekt: Will there be a possibility to suppress the display of the - it bears IMHO no indispensable information, and can be very disturbing, e.g. there.
It is generated at stmt 829 of Module:Coordinates. -- sarang♥사랑 10:42, 2 September 2022 (UTC)
- @Sarang: , the
on the right of the Template has been part of the template since 2007 and I am reluctant to just remove it. I am not very attached to it, but I do not know if other users find it useful or not. Maybe the best option would be propose this change at Commons:Village pump/Proposals (2 options: keep as is or remove) and if there is consensus I will easily remove it. --Jarekt (talk) 11:33, 2 September 2022 (UTC)
Mention camera velocity?[edit]
OK the camera was pointed north, but the airplane it was in was speeding 1000 km/h westbound. Mention what to do about that fact. Jidanni (talk) 06:10, 10 January 2023 (UTC)
- I don't think the template need mention where the camera was going or how fast. Thw information is not automatically collected in EXIF and says nothing about the subject of the picture. So, it belongs in the description if anywhere. Jim.henderson (talk) 18:29, 11 January 2023 (UTC)
Videos taken from a plane[edit]
In File:Landing at SFO 2022.07.06.webm I filmed for five minutes from point A to point B many miles away. Thus there should be more templates we can use:
- Beginning location
- Final location
- and maybe even Average location.
And maybe another set too: Beginning Object location, Final Object location... Jidanni (talk) 08:49, 25 March 2023 (UTC)