Template:Object location

From Wikimedia Commons, the free media repository
Jump to: navigation, search

Object location

Latitude, Longitude

View this and other nearby images on: Google Maps - Google Earth - OpenStreetMap - Proximityrama (Info)

Afrikaans | беларуская (тарашкевіца)‎ | brezhoneg | català | česky | dansk | Deutsch | English | español | eesti | euskara | suomi | français | galego | עברית | hrvatski | magyar | Հայերեն | italiano | 日本語 | ភាសាខ្មែរ | 한국어 | lietuvių | македонски | മലയാളം | Plattdüütsch | Nederlands | norsk bokmål | polski | português | română | русский | slovenščina | српски / srpski | svenska | ไทย | Türkçe | vèneto | 中文(简体)‎ | 中文(繁體)‎ | +/−

[edit]

Documentation

Contents

Main Syntax


Template used for geo-codeing Commons images, providing locations of objects being photographed using degrees/minutes/seconds (DMS) notation or decimal notation. See Commons:Geocoding for more information.

In most cases, camera location is preferred and most images should use {{Location}} or {{Location dec}}. However, in some cases object location—which indicates the position of the main subject of the photograph—makes more sense, for example when providing the location of a painting or sheet music. It can also be used to point to a nearby feature instead of giving the exact location of the main object, e.g. when you do not want to reveal the exact location of a rare plant. Object location tags do not add the picture onto the GeoCommons layer for Google maps and Google Earth, so if you know the camera location and want the picture to be shown in this layer, use the camera location tag instead.

The template automatically sets the following categories: Category:Media with locations or Category:Media with erroneous locations

Usage

{{Object location|1=|2=|3=|4=|5=|6=|7=|8=|9=}}

Should be placed directly below {{Information}}, {{Artwork}} or other similar template. If {{Location}} template is also present than it should be placed above this template.

Parameters

Parameter name Description Default value required or optional?
parameter #1 (1) Degrees of Latitude empty required
parameter #2 (2) Minutes of Latitude empty required
parameter #3 (3) Seconds of Latitude empty required
parameter #4 (4) Latitude Direction (N or S) empty required
parameter #5 (5) Degrees of Longitude empty required
parameter #6 (6) Minutes of Longitude empty required
parameter #7 (7) Seconds of Longitude empty required
parameter #8 (8) Longitude Direction (W or E) empty required
parameter #9 (9) Information attributes - used to pass to GeoHack server metadata about the coordinates. This information is not used by {{Object location}} template. Attributes have to be in the format field1:value1_field2:value2_field3:value3, etc. The following fields are supported:
  • region:XX-YYY specifies the political region, used to select appropriate map resources. See here for more info.
  • XX is an ISO 3166-1 alpha 2 country code abbreviation, and
  • YYY is a 1-, 2- or 3- characters ISO 3166-2 (see en:ISO 3166-2#Format for details) province/region/state code abbreviation (typically the same as a local postal code abbreviation).
  • heading: indicate the direction the camera was pointing at. It is given as degree values 0-360 (clockwise with north as 0) or a compass point abbreviation (up to four letters) as defined in Boxing the compass. (Example: heading:NW)
  • scale:N specifies the desired map scale as 1:N. Since most images are at the lowest scale, the parameter should be given only if values different from the default are desired. See here for more info.
  • dim:<width><units> specifies the width of the object in meters or kilometers (example: dim:120m or dim:10km. Since most images are at the lowest scale, the parameter should be given only if values different from the default are desired. See here for more info.
  • class:object is hard-coded value which will be added automatically to all images to tag this location as the ""object location
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

Alternative Syntax


Alternative syntax is the same as syntax of {{Object location dec}}.

Usage

{{Object location|1=|2=|3=}}

Parameters

Parameter name Description Default value required or optional?
parameter #1 (1) Degrees of Latitude. The sign indicates hemisphere: + (North) and - (South). empty required
parameter #2 (2) Degrees of Longitude. The sign indicates hemisphere: + (East) and - (West). empty required
parameter #3 (3) See parameter #9 in the main syntax 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

Relies on:
{{Location}}

See also

  • Other templates from the family:
  • {{Location}} – used to provide camera location using degrees/minutes/seconds (DMS) notation
  • {{Location dec}} – used to provide camera location using decimal notation
  • {{Object location}} – used to provide object location using DMS notation
  • {{Object location dec}} – used to provide object location using decimal notation
  • {{Globe location}} – used to provide object location on other globes, like moon, mars, etc. Uses both decimal and DMS notations.
  • Related templates

internationalization is handled by {{Location}} template

Examples

Main syntax
Code {{Object location|34|1|27.37|N|116|9|29.88|W|...}}
Produces

Object location

34° 1′ 27.37″ N, 116° 9′ 29.88″ W

View this and other nearby images on: Google Maps - Google Earth - OpenStreetMap - Proximityrama (Info)
Alternative syntax
Code {{Object location|34.02427|-116.15830|region:DE-NI_scale:10000}}
Produces

Object location

34° 1′ 27.37″ N, 116° 9′ 29.88″ W

View this and other nearby images on: Google Maps - Google Earth - OpenStreetMap - Proximityrama (Info)