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/attribute documentation: Difference between revisions

Template page
No edit summary
+ anchor "Heading" – this anchor I will use in a future version of Commons:LrMediaWiki; maybe it's usefull in other contexts too, and maybe similar anchors are even sensefull
Line 3: Line 3:
:*<code>XX</code> is an [[:en:ISO 3166-1|ISO 3166-1]] alpha 2 country code abbreviation, and
:*<code>XX</code> is an [[:en:ISO 3166-1|ISO 3166-1]] alpha 2 country code abbreviation, and
:*<code>YYY</code> is a 1-, 2- or 3- characters [[:en:ISO 3166-2|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).
:*<code>YYY</code> is a 1-, 2- or 3- characters [[:en:ISO 3166-2|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).
*<code>'''heading:'''</code> indicate 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 [[w:Points of the compass|Points of the compass]]. (Example: heading:NW). It should be very similar for both {{tl|Location}} and {{tl|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 {{tl|Object location}} template that might mean that we are looking at a South wall/side of the structure/object.
*{{anchor|Heading}}<code>'''heading:'''</code> indicate 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 [[w:Points of the compass|Points of the compass]]. (Example: heading:NW). It should be very similar for both {{tl|Location}} and {{tl|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 {{tl|Object location}} template that might mean that we are looking at a South wall/side of the structure/object.
*<code>'''scale:'''N</code> specifies the desired [[:en:scale (map)|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 [[w:Wikipedia:WikiProject_Geographical_coordinates#scale:N|here]] for more info.
*<code>'''scale:'''N</code> specifies the desired [[:en:scale (map)|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 [[w:Wikipedia:WikiProject_Geographical_coordinates#scale:N|here]] for more info.
*<code>'''dim:'''<width><units></code> specifies the width of the object in meters or kilometers (example: <code>dim:120m</code> or <code>dim:10km</code>. Since most images are at the lowest scale, the parameter should be given only if values different from the default are desired. See [[w:Wikipedia:WikiProject_Geographical_coordinates#dim:D|here]] for more info.
*<code>'''dim:'''<width><units></code> specifies the width of the object in meters or kilometers (example: <code>dim:120m</code> or <code>dim:10km</code>. Since most images are at the lowest scale, the parameter should be given only if values different from the default are desired. See [[w:Wikipedia:WikiProject_Geographical_coordinates#dim:D|here]] for more info.

Revision as of 19:59, 1 February 2016

Information attributes - used to pass to GeoHack server metadata about the coordinates. Apart from heading, this information is not used by {{Location/attribute documentation}} 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 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.
Cookies help us deliver our services. By using our services, you agree to our use of cookies.