Modèle:Location : Différence entre versions
(improve error checking) |
m (1 révision importée : Import de modèles utilisés par UploadWizard) |
(Aucune différence)
|
Version actuelle datée du 11 janvier 2016 à 11:45
Lieu de la prise de vue | latitude, longitude | Voir cet endroit et d’autres images sur : OpenStreetMap - Google Earth |
---|
Sommaire
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}} is the main template of the {{Location}}, {{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:}})
Usage
{{Location |2= |3= |1= }}
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 in order to group all location information together – objections are in point of graphic design not ideal adjusted for such use. See this and this discussion.
⧼templatedata-doc-params⧽
Parameter | Description | Default | Status | |
---|---|---|---|---|
2 | Longitude | Degrees of Longitude. The sign indicates hemisphere: + (East) and - (West). | empty | required |
3 | 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 ("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 |
1 | Latitude | Degrees of Latitude. The sign indicates hemisphere: + (North) and - (South). | empty | required |
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
Syntax #2: Degrees/Minutes/Seconds (DMS)
Alternative DMS syntax.
Usage
{{Location |2= |8= |9= |3= |1= |4= |5= |6= |7= }}
⧼templatedata-doc-params⧽
Parameter | Description | Default | Status | |
---|---|---|---|---|
2 | latitude minutes | Minutes of Latitude | empty | required |
8 | East/West hemisphere | Longitude Direction or East/West Hemisphere (W or E) | empty | required |
9 | 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 |
3 | latitude seconds | Seconds of Latitude | empty | required |
1 | latitude degrees | Degrees 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 |
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 |
bare | bare | "bare=1" will show only field value without field's name ("Camera location") | empty | optional |
7 | longitude seconds | Seconds of Longitude | empty | required |
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}}
All translations at Module:I18n/coordinates
Examples
Code | {{Location|34.02427|-116.15830|region:DE-NI_scale:10000}} |
||||
---|---|---|---|---|---|
Produces |
|
Code | {{Location|34|1|27.37|N|116|9|29.88|W|...}} |
||||
---|---|---|---|---|---|
Produces |
|
Code | {{Location|34|1|27.37|N|116|9|29.88|W|...}} |
||||
---|---|---|---|---|---|
Produces |
|
The above documentation is transcluded from Modèle:Location/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |