Template:Object location

From Wikimedia Commons, the free media repository
(Redirected from Template:Object Location)
Jump to: navigation, search
Object location 0° 00′ 00″ N, 0° 00′ 00″ E Kartographer map based on OpenStreetMap. View all coordinates using: OpenStreetMap - Google Earth info
Documentation icon Documentationviewedithistorypurge

This documentation is transcluded from Template:Object location/doc.

Syntax #1: decimal degrees

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

Most place categories should use {{Object location}} instead of camera {{Location}}. For files, camera {{Location}}s are preferred; 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= }}

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

Template parameters

Parameter Description Default Status
1 Latitude Degrees of Latitude. The sign indicates hemisphere: + (North) and - (South). empty optional
2 Longitude Degrees of Longitude. The sign indicates hemisphere: + (East) and - (West). empty optional
3
attributes
attributes Information attributes - used to pass to GeoHack server metadata about the coordinates. Apart from heading, 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: 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 in Points 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 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.
  • 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.
empty optional
wikidata
Wikidata
wikidata Wikidata Q-code of an item with coordinate location (P625). Alternative to latitude and longitude. empty optional
bare "bare=1" will show only field value without field's name ("Object location") empty optional
prec precision By 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. ~0.3 meters optional
lang language language 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

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

Alternative DMS syntax.

Usage

{{Object 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
attributes
See parameter #3 in the decimal degrees syntax empty optional
bare "bare=1" will show only field value without field's name ("Object location") empty optional
prec precision By 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. ~0.3 meters optional
lang language language 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:
  • {{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

All translations at Module:I18n/coordinates

Examples

Syntax #1
Code {{Object location|34.02427|-116.15830|region:US-CA_scale:10000}}
Produces
Object location 34° 01′ 27.37″ N, 116° 09′ 29.88″ W Kartographer map based on OpenStreetMap. View all coordinates using: OpenStreetMap - Google Earth info
Syntax #2
Code {{Object location|34|1|27.37|N|116|9|29.88|W|...}}
Produces
Object location 34° 01′ 27.37″ N, 116° 09′ 29.88″ W  Heading=225° Kartographer map based on OpenStreetMap. View all coordinates using: OpenStreetMap - Google Earth info
https://commons.wikimedia.org/wiki/Template:Object_Location
commons.wikimedia.org
crawl=CC-MAIN-2017-51
49445
application/http; msgtype=response
sha1:Z6VPPB3Z5TB3BBUIKFR63X2XBMBADN2Z
<urn:uuid:4bcc21a7-ba5f-40d6-8d2c-165cedb7663a>
2017-12-13T07:39:33Z
208.80.154.224
text/html
sha1:7WXYLAPPJGK3R6E5TPCNMOUMCV7GHAPD
<urn:uuid:bfba32d0-a48b-4f43-bdd7-7953bca6ee9f>
https://commons.wikimedia.org/wiki/Template:Object_Location
length
response
<urn:uuid:7393cda3-39a7-4469-9dfb-9b1477b0aeb9>
robots: classic
hostname: ip-10-123-210-183.ec2.internal
software: Nutch 1.6 (CC)
isPartOf: CC-MAIN-2017-51
operator: Common Crawl Admin
description: Wide crawl of the web for December 2017
publisher: Common Crawl
format: WARC File Format 1.0
conformsTo: http://bibnum.bnf.fr/WARC/WARC_ISO_28500_version1_latestdraft.pdf