(Undo revision 546565462 by AntiCompositeNumber (talk): doesn’t work, see talk page) |
m (1 revision imported) |
(No difference)
|
Latest revision as of 12:40, 19 April 2024
Lua error in Module:Coordinates at line 739: attempt to index field 'wikibase' (a nil value).
This template uses Lua: |
Syntax #1: decimal degrees
Template used for geocoding Commons images, providing camera location using decimal or degrees/minutes/seconds (DMS) syntax. See Commons: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 and heading of the location of the camera.
The template automatically sets the following categories: Depending on namespace:
- Category:Media with locations (for files)
- Category:Galleries with coordinates (for galleries)
- Category:Categories with coordinates (for categories)
In case of errors:
- Category:Media with default locations (set by the template in case of lat=0 and lon=0 coordinates)
- Category:Media with erroneous locations (set by the template for other issues)
- Category:Pages with malformed coordinate tags (set by {{#coordinates:}})
Wikidata related:
- Category:Pages with local object coordinates and matching Wikidata coordinates
- Category:Pages with local coordinates and similar Wikidata coordinates
- Category:Pages with local object coordinates and missing Wikidata coordinates
- Category:Pages with local object coordinates and mismatching Wikidata coordinates
Usage
{{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. See this and this discussion.
Template parameters
Parameter | Description | Default | Status | |
---|---|---|---|---|
1 | Latitude | Degrees of Latitude. The sign indicates hemisphere: +(North) and -(South). DMS format is also allowed, for example 50° 37′ 50.63″ N . | empty | optional |
2 | Longitude | Degrees of Longitude. The sign indicates hemisphere: +(East) and -(West). DMS format is also allowed, for example 6° 01′ 57.61″ E . | empty | optional |
3 attributes | attributes | Information attributes - used to pass to GeoHack server metadata about the coordinates. Apart from heading , this information is not used by {{Location}} template. Attributes have to be in the format field1:value1_field2:value2_field3:value3 , etc. The following fields are supported:
| empty | optional |
wikidata Wikidata | wikidata | Wikidata Q-code of an item with coordinate 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 as secondary. This template calls {{#coordinates:}} parser function, one of the parameters of which is primary vs. secondary label. Primary coordinates define file's camera location and are the default, but each file can only have single primary 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 |
Additional information
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
Localization
This template is not intended to be localized.
Syntax #2: Degrees/Minutes/Seconds (DMS)
Alternative DMS syntax.
Usage
{{Location |1= |2= |3= |4= |5= |6= |7= |8= |9= }}
Template parameters
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 to GeoHack server metadata about the coordinates. Apart from heading , this information is not used by {{Location}} template. Attributes have to be in the format field1: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 |
Additional information
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
⧼Seealso⧽
- Other templates from the family:
- {{Location}} – used to provide camera location using
- {{Object location}} – used to provide object location using
- {{Globe location}} – used to provide object location on other globes, like Moon, Mars, etc.
- Related templates
- {{Location-Panorama}}
- {{Location map notice}}
- {{Location possible}}, mark pictures without defined location
- {{Location required}}
- {{GPS EXIF}}
- {{Location withheld}}
- {{Location estimated}}
- {{Location rounded}}
All translations at Module:I18n/coordinates
Syntax #2a: Degrees/Minutes/Seconds (DMS) symbols
It is possible to use the output format (of e.g. Location, or Wikimapia) as the input for Location:
The DMS data string can be converted from the symbol format
e.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.
Examples
Code |
|
---|---|
Produces | Lua error in Module:Coordinates at line 739: attempt to index field 'wikibase' (a nil value). |
Code |
|
---|---|
Produces | Lua error in Module:Coordinates at line 739: attempt to index field 'wikibase' (a nil value). |
Code |
|
---|---|
Produces | Lua error in Module:Coordinates at line 739: attempt to index field 'wikibase' (a nil value). |
Code |
|
---|---|
Produces | Lua error in Module:Coordinates at line 739: attempt to index field 'wikibase' (a nil value). |
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 |