Jump to content
Toggle menu
  • 8 articles
  • 75 files
  • 7 users
  • 37.8K edits
Neodyland Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Location/doc: Difference between revisions

Template page
note
No edit summary
Line 45: Line 45:
|9def=
|9def=
|9stat=optional
|9stat=optional
|10=secondary
|10d=If it is needed to be set coordinates as secondary, use this parameter. Any string on this parameter makes coordinates as secondary on <nowiki>{{#coordinates:}}</nowiki>.
|10def=
|10stat=optional


|name=Location
|name=Location

Revision as of 08:16, 24 February 2013

Template used for Geo-codeing Commons images, providing camera location using degrees/minutes/seconds (DMS) notation or decimal notation. See Commons:Geocoding for more information.

{{Location}} is the main template of the {{Location dec}}, {{Location dec}}, {{Object location}}, {{Object location dec}}, {{Globe location}} family, as all the other templates rely on {{Location}} sub-templates.

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

Usage

{{Location |1= |2= |3= |4= |5= |6= |7= |8= |9= |secondary= }}

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 in order to group all location information together – objections are in point of graphic design not ideal adjusted for such use. See this and this discussion.

Template parameters

ParameterDescriptionDefaultStatus
1Degrees of Latitudeemptyrequired
2Minutes of Latitudeemptyrequired
3Seconds of Latitudeemptyrequired
4Latitude Direction (N or S)emptyrequired
5Degrees of Longitudeemptyrequired
6Minutes of Longitudeemptyrequired
7Seconds of Longitudeemptyrequired
8Longitude Direction (W or E)emptyrequired
9Information attributes - used to pass to GeoHack server metadata about the coordinates. Apart from heading, this information is not used by {{Location/doc}} 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 w: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.
  • class:object is hard-coded value which will be added automatically to all images to tag this location as the ""object location
emptyoptional
secondaryIf it is needed to be set coordinates as secondary, use this parameter. Any string on this parameter makes coordinates as secondary on {{#coordinates:}}.emptyoptional

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

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

Localization

English

This template is localized through {{Autotranslate}}.


To add your language to the list of languages supported by this template, please copy the code of Template:Location/en (or any other language version you prefer to translate) and replace the text strings in there (the form below can be used to create a translation, the English version is preloaded in the edit box). Please change the parameter lang from en (or whatever language you are translating) to the language code of your language.



Examples

Main syntax
Code {{Location|34|1|27.37|N|116|9|29.88|W|...}}
Produces 34.0243° N 116.1583° W


Cookies help us deliver our services. By using our services, you agree to our use of cookies.