This page is protected against editing.

Template:Location

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search
Camera location0° 00′ 00″ N, 0° 00′ 00″ E Kartographer map based on OpenStreetMap.View all coordinates using: OpenStreetMapinfo
Template documentationview · edit · history · purge ]
This documentation is transcluded from Template:Location/doc.

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:

In case of errors:

Wikidata related:

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:
  • Related templates

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. {{ Location1 = 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

Syntax #1 — 2 location values
Code
 {{Location|34.02427|-116.15830|region:DE-NI_scale:5000}}
Produces
Camera location34° 01′ 27.37″ N, 116° 09′ 29.88″ W Kartographer map based on OpenStreetMap.View all coordinates using: OpenStreetMapinfo
Syntax #2 — 8 location values
Code
 {{Location|34|1|27.37|N|116|9|29.88|W|region:DE-NI_scale:6000}}
Produces
Camera location34° 01′ 27.37″ N, 116° 09′ 29.88″ W  Heading=225° Kartographer map based on OpenStreetMap.View all coordinates using: OpenStreetMapinfo
Syntax #2a — 1 parameter
Code {{Location|34° 01′ 27.37″ N, 116° 09′ 29.88″ W|region:DE-NI_scale:10000_heading:SW}}
Produces
Camera location34° 01′ 27.37″ N, 116° 09′ 29.88″ W  Heading=225° Kartographer map based on OpenStreetMap.View all coordinates using: OpenStreetMapinfo
Syntax #2b — 1 parameter
Code {{Location|34 1 27.37 N 116 9 29.88 W|region:DE-NI_scale:10000_heading:SW}}
Produces
Camera location34° 01′ 27.37″ N, 116° 09′ 29.88″ W  Heading=225° Kartographer map based on OpenStreetMap.View all coordinates using: OpenStreetMapinfo

Template used for geocoding Commons images, providing camera location using decimal or degrees/minutes/seconds (DMS) syntax.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
latlat

no description

Unknownoptional
lonlon

no description

Unknownoptional