Template:Location/doc: Difference between revisions
More actions
Corrected spelling of heading. |
mNo edit summary |
||
| Line 36: | Line 36: | ||
|desc= Template used for geocoding Commons images, providing camera location using decimal or degrees/minutes/seconds (DMS) syntax. See [[Commons:Geocoding]] for more information. | |desc= Template used for geocoding Commons images, providing camera location using decimal or degrees/minutes/seconds (DMS) syntax. See [[Commons:Geocoding]] for more information. | ||
{{tl|Location}} is the main template of the {{Tl|Location}}, {{Tl|Object location}} and {{Tl|Globe location}} family and is | {{tl|Location}} is the main template of the {{Tl|Location}}, {{Tl|Object location}} and {{Tl|Globe location}} family and is supposed to be used to define the coordinates and heading of the location of the camera. | ||
|namespace=file | |namespace=file | ||
|usergroup=all | |usergroup=all | ||
Revision as of 10:23, 29 March 2014
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 location (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 |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 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.
Template parameters
| Parameter | Description | Default | Status | |
|---|---|---|---|---|
1 | Latitude | Degrees of Latitude. The sign indicates hemisphere: + (North) and - (South). | empty | required |
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/doc}} template. Attributes have to be in the format field1:value1_field2:value2_field3:value3, etc. The following fields are supported:
| empty | optional |
bare | "bare=1" will show only field value without field's name ("Object location") | empty | optional | |
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 | |
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 |1= |2= |3= |4= |5= |6= |7= |8= |9= }}
Template parameters
| Parameter | Description | Default | Status | |
|---|---|---|---|---|
1 | Degrees of Latitude | empty | required | |
2 | Minutes of Latitude | empty | required | |
3 | Seconds of Latitude | empty | required | |
4 | Latitude Direction (N or S) | empty | required | |
5 | Degrees of Longitude | empty | required | |
6 | Minutes of Longitude | empty | required | |
7 | Seconds of Longitude | empty | required | |
8 | Longitude Direction (W or E) | empty | required | |
9 | See parameter #3 in the decimal degrees syntax | empty | optional | |
bare | "bare=1" will show only field value without field's name ("Camera location") | empty | 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
See also
- 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}}
== Localization ==
All translations at Module:I18n/coordinates
Examples
| Code | {{Location|34.02427|-116.15830|region:DE-NI_scale:10000}} |
|---|---|
| Produces | 34.0243° N 116.1583° W |
| Code | {{Location|34|1|27.37|N|116|9|29.88|W|...}} |
|---|---|
| Produces | 34.0243° N 116.1583° W |
| Code | {{Location|34|1|27.37|N|116|9|29.88|W|...}} |
|---|---|
| Produces | 34.0243° N 116.1583° W |