Movatterモバイル変換


[0]ホーム

URL:


Jump to content
Wikimedia Commons
Search

Template:Location

This page is protected against editing.
From Wikimedia Commons, the free media repository
⚠
Note: This template is used on a lot of pages. In order not to put too much load on the servers, edits should be kept to a bare minimum. Pleasediscuss proposed changes onthe talk page first.

Afterwards, changes caninitially be done at and tested withTemplate:Location/sandbox.

  • Editing a template causesall pages that use the template to be re-rendered. If the template is used often, this can put a lot of load on the servers since it fills up thejob queue.
  • Keep in mind that templates that are used on file description pages alsoshow up on other wikis.
  • This page is template-protected from editing to prevent vandalism. Only template editors and administrators can edit it. Get their attention by placing{{Edit protected}} at thetalk page.
    This page is template-protected against editing.
Camera location0° 00′ 00″ N, 0° 00′ 00″ E Kartographer map based on OpenStreetMap.View all coordinates using:OpenStreetMapinfo
Template documentation[ view ·edit ·history ·purge ]
This documentation istranscluded fromTemplate:Location/doc.
Lua logoUsesLua:

Syntax #1: decimal degrees

Template used for geocoding Commons images, providing camera location using decimal or degrees/minutes/seconds (DMS) syntax. SeeCommons: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 andheading of the location of the camera.

The template automatically sets the following categories:Depending on namespace:

In case of errors:

Wikidata related:

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. Seethis andthis discussion.

Template parameters

ParameterDescriptionDefaultStatus
1LatitudeDegrees of Latitude. The sign indicates hemisphere: +(North) and -(South). DMS format is also allowed, for example50° 37′ 50.63″ N.emptyoptional
2LongitudeDegrees of Longitude. The sign indicates hemisphere: +(East) and -(West). DMS format is also allowed, for example6° 01′ 57.61″ E.emptyoptional
3
attributes
attributesInformation attributes - used to pass toGeoHack server metadata about the coordinates. Apart fromheading, this information is not used by{{Location}} template. Attributes have to be in the formatfield1:value1_field2:value2_field3:value3, etc. The following fields are supported:
  • region:XX-YYY specifies the political region, used to select appropriate map resources. Seehere for more info.
  • XX is anISO 3166-1 alpha 2 country code abbreviation, and
  • YYY is a 1-, 2- or 3- charactersISO 3166-2 (seeen:ISO 3166-2#Format for details) province/region/state code abbreviation (typically the same as a local postal code abbreviation).
  • heading: indicates the direction in which the camera was pointing. It is given as degree values 0–360 (clockwise with north as 0) or a compass point abbreviation (up to four letters) as defined inPoints of the compass. (Example:heading:NW). It should be very similar for both{{Location}} and{{Object location}} templates when used in the same image. For example "heading:N" means that the camera was pointing North when the photograph was taken. In case of{{Object location}} template that might mean that we are looking at a South wall/side of the structure/object.
  • scale:N specifies the desiredmap scale as1:N. Since most images are at the lowest scale, the parameter should be given only if values different from the default are desired. Seehere for more info.
  • dim:<width><units> specifies the width of the object in meters or kilometers (example:dim:120m ordim:10km). Since most images are at the lowest scale, the parameter should be given only if values different from the default are desired. Seehere for more info.
  • source: where the data come from
  • class:object is a hard-coded value which will be added automatically to all images to tag this location as the "object" location.
emptyoptional
wikidata
Wikidata
wikidataWikidata Q-code of an item withcoordinate location (P625). Alternative to latitude and longitude.emptyoptional
barebare"bare=1" will show only field value without field's name ("Object location")emptyoptional
secondarysecondarysecondary=1 will tag this set of coordinates assecondary. This template calls {{#coordinates:}}parser function, one of the parameters of which isprimary vs.secondary label. Primary coordinates define file's camera location and are the default, but each file can only have singleprimary location tag.emptyoptional
precprecisionBy 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.3optional
langlanguagelanguage 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

ParameterDescriptionDefaultStatus
1latitude degreesDegrees of Latitudeemptyrequired
2latitude minutesMinutes of Latitudeemptyrequired
3latitude secondsSeconds of Latitudeemptyrequired
4North/South hemisphereLatitude Direction or North/South hemisphere (N or S)emptyrequired
5longitude degreesDegrees of Longitudeemptyrequired
6longitude minutesMinutes of Longitudeemptyrequired
7longitude secondsSeconds of Longitudeemptyrequired
8East/West hemisphereLongitude Direction or East/West Hemisphere (W or E)emptyrequired
9
attributes
attributesInformation attributes - used to pass toGeoHack server metadata about the coordinates. Apart fromheading, this information is not used by{{Location}} template. Attributes have to be in the formatfield1:value1_field2:value2_field3:value3, etc. The following fields are supported:
  • region:XX-YYY specifies the political region, used to select appropriate map resources. Seehere for more info.
  • XX is anISO 3166-1 alpha 2 country code abbreviation, and
  • YYY is a 1-, 2- or 3- charactersISO 3166-2 (seeen:ISO 3166-2#Format for details) province/region/state code abbreviation (typically the same as a local postal code abbreviation).
  • heading: indicates the direction in which the camera was pointing. It is given as degree values 0–360 (clockwise with north as 0) or a compass point abbreviation (up to four letters) as defined inPoints of the compass. (Example:heading:NW). It should be very similar for both{{Location}} and{{Object location}} templates when used in the same image. For example "heading:N" means that the camera was pointing North when the photograph was taken. In case of{{Object location}} template that might mean that we are looking at a South wall/side of the structure/object.
  • scale:N specifies the desiredmap scale as1:N. Since most images are at the lowest scale, the parameter should be given only if values different from the default are desired. Seehere for more info.
  • dim:<width><units> specifies the width of the object in meters or kilometers (example:dim:120m ordim:10km). Since most images are at the lowest scale, the parameter should be given only if values different from the default are desired. Seehere for more info.
  • source: where the data come from
  • class:object is a hard-coded value which will be added automatically to all images to tag this location as the "object" location.
emptyoptional
barebare"bare=1" will show only field value without field's name ("Camera location")emptyoptional
precprecisionBy 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.3optional
langlanguagelanguage 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

See also

  • Other templates from the family:
  • Related templates

== Localization ==

All translations atModule:I18n/coordinates

Syntax #2a: Degrees/Minutes/Seconds (DMS) symbols

It is possible to use the output format (of e.g.Location, orWikimapia) as the input forLocation:
The DMS data string can be converted from thesymbol formate.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


Retrieved from "https://commons.wikimedia.org/w/index.php?title=Template:Location&oldid=546742526"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp