Note: This template is used on a lot of pages. In order not to put too much load on the servers, edits should be kept to a bare minimum. Pleasediscuss proposed changes onthe talk page first. Afterwards, changes caninitially be done at and tested withTemplate:Location/sandbox.
|
Camera location | 0° 00′ 00″ N, 0° 00′ 00″ E ![]() | View all coordinates using:OpenStreetMap | ![]() |
---|
![]() | UsesLua: |
Template used for geocoding Commons images, providing camera location using decimal or degrees/minutes/seconds (DMS) syntax. SeeCommons:Geocoding for more information.
{{Location}} ={{Camera location}} is the main template of the{{Object location}} and{{Globe location}} family and is supposed to be used to define the coordinates andheading of the location of the camera.
The template automatically sets the following categories:Depending on namespace:
In case of errors:
Wikidata related:
{{Location |1= |2= |3= }}
Should be placed directly above or below{{Information}},{{Artwork}} or other similar template.
Note: some users prefer to include location template(s) into the "Description" field of{{Information}} template to group all location information – objections contend that graphic design is not ideally adjusted for such use. Seethis andthis discussion.
Parameter | Description | Default | Status | |
---|---|---|---|---|
1 | Latitude | Degrees of Latitude. The sign indicates hemisphere: +(North) and -(South). DMS format is also allowed, for example50° 37′ 50.63″ N . | empty | optional |
2 | Longitude | Degrees of Longitude. The sign indicates hemisphere: +(East) and -(West). DMS format is also allowed, for example6° 01′ 57.61″ E . | empty | optional |
3 attributes | attributes | Information attributes - used to pass toGeoHack server metadata about the coordinates. Apart fromheading , this information is not used by{{Location}} template. Attributes have to be in the formatfield1:value1_field2:value2_field3:value3 , etc. The following fields are supported:
| empty | optional |
wikidata Wikidata | wikidata | Wikidata Q-code of an item withcoordinate location (P625). Alternative to latitude and longitude. | empty | optional |
bare | bare | "bare=1" will show only field value without field's name ("Object location") | empty | optional |
secondary | secondary | secondary=1 will tag this set of coordinates assecondary. This template calls {{#coordinates:}}parser function, one of the parameters of which isprimary vs.secondary label. Primary coordinates define file's camera location and are the default, but each file can only have singleprimary location tag. | empty | optional |
prec | precision | By default the georeference precision is about 0.3 meters or 1/100 of a second on the equator. To show less digits add parameter "prec" with a measurement precisions expressed in meters. For example 40 meter uncertainty would be expressed as "prec=40". At the moment this parameter only affects the display of the coordinates. | 0.3 | optional |
lang | language | language code (only needs to be provided if the language shall be fixed and independent from the user's preferences) | language code of the user language ({{int:Lang}}) | optional |
The template is intended to be used in the following namespaces:the File namespace
The template is intended to be used by the following user groups:all users
This template is not intended to be localized.
Alternative DMS syntax.
{{Location |1= |2= |3= |4= |5= |6= |7= |8= |9= }}
Parameter | Description | Default | Status | |
---|---|---|---|---|
1 | latitude degrees | Degrees of Latitude | empty | required |
2 | latitude minutes | Minutes of Latitude | empty | required |
3 | latitude seconds | Seconds of Latitude | empty | required |
4 | North/South hemisphere | Latitude Direction or North/South hemisphere (N or S) | empty | required |
5 | longitude degrees | Degrees of Longitude | empty | required |
6 | longitude minutes | Minutes of Longitude | empty | required |
7 | longitude seconds | Seconds of Longitude | empty | required |
8 | East/West hemisphere | Longitude Direction or East/West Hemisphere (W or E) | empty | required |
9 attributes | attributes | Information attributes - used to pass toGeoHack server metadata about the coordinates. Apart fromheading , this information is not used by{{Location}} template. Attributes have to be in the formatfield1:value1_field2:value2_field3:value3 , etc. The following fields are supported:
| empty | optional |
bare | bare | "bare=1" will show only field value without field's name ("Camera location") | empty | optional |
prec | precision | By default the georeference precision is about 0.3 meters or 1/100 of a second on the equator. To show less digits add parameter "prec" with a measurement precisions expressed in meters. For example 40 meter uncertainty would be expressed as "prec=40". At the moment this parameter only affects the display of the coordinates. | 0.3 | optional |
lang | language | language code (only needs to be provided if the language shall be fixed and independent from the user's preferences) | language code of the user language ({{int:Lang}}) | optional |
The template is intended to be used in the following namespaces:all content namespaces
The template is intended to be used by the following user groups:all users
Relies on:
Module:Coordinates
== Localization ==
All translations atModule:I18n/coordinates
It is possible to use the output format (of e.g.Location, orWikimapia) as the input forLocation:
The DMS data string can be converted from thesymbol formate.g. {{ Location | 1 = 34°01′27.37″N 116°09′29.88″W | ... }}
to the above DMS format; all the other parameters also like above.Additional spaces or commas won't matter.
Code |
| ||||
---|---|---|---|---|---|
Produces |
|
Code |
| ||||
---|---|---|---|---|---|
Produces |
|
Code | {{Location|34° 01′ 27.37″ N, 116° 09′ 29.88″ W|region:DE-NI_scale:10000_heading:SW}} | ||||
---|---|---|---|---|---|
Produces |
|
Code | {{Location|34 1 27.37 N 116 9 29.88 W|region:DE-NI_scale:10000_heading:SW}} | ||||
---|---|---|---|---|---|
Produces |
|
Template used for geocoding Commons images, providing camera location using decimal or degrees/minutes/seconds (DMS) syntax.
Parameter | Description | Type | Status | |
---|---|---|---|---|
lat | lat | no description | Unknown | optional |
lon | lon | no description | Unknown | optional |