Template:Globe location

From Wikimedia Commons, the free media repository
Jump to: navigation, search
Location 0° 00′ 00″ N, 0° 00′ 00″ E View this and other nearby images on: nil info
Documentation icon Documentationviewedithistorypurge

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

Main Syntax

Template used for geocoding images from other planets (moons, etc.) than earth. Locations can be provided using degrees/minutes/seconds (DMS) notation or decimal notation. See Commons:Geocoding for more information.

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

Usage

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

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.

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 Name of the globe. Currently: Mars, Moon, Venus, Mercury, Titan, Ganymede, and Earth. Earth required
10 Information attributes - used to pass to GeoHack server metadata about the coordinates. Apart from heading, this information is not used by {{Globe 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.
  • 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

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 similar to {{Object location dec}}.

Usage

{{Globe location |1= |2= |3= |4= }}

Template parameters

Parameter Description Default Status
1 latitude Degrees of Latitude. The sign indicates hemisphere: + (North) and - (South). empty required
2 longitude Degrees of Longitude. The sign indicates hemisphere: + (East) and - (West). empty required
3 globe Name of the globe. Currently: Mars, Moon, Venus, Mercury, Titan, Ganymede, and Earth. Earth required
4 attributions See parameter #10 in the main syntax empty optional
wikidata
Wikidata
wikidata Wikidata Q-code of an item with coordinate location (P625). Alternative to latitude and longitude. 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

{{Globe location}} example
Code {{Globe location|34.02427|-116.15830|moon}}
Produces
Location on Moon 34° 01′ 27.37″ N, 116° 09′ 29.88″ W View this and other nearby images on: Google Maps info
Code {{Globe location|34|1|27.37|N|116|9|29.88|W|mars}}
Produces
Location on Mars 34° 01′ 27.38″ N, 116° 09′ 29.88″ W View this and other nearby images on: Google Maps info