Template:Location
Camera location | View all coordinates using: OpenStreetMap |
---|
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
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.
The template takes no parameters.
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
The template takes no parameters.
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}}
- {{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 |
|
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 |