Template:Location/attribute documentation: Difference between revisions
Template page
More actions
No edit summary |
small adjustment, since "heading" is now supported by {{Location}} |
||
| Line 1: | Line 1: | ||
Information attributes - used to pass to [[tswiki:GeoHack|GeoHack]] server metadata about the coordinates. | Information attributes - used to pass to [[tswiki:GeoHack|GeoHack]] server metadata about the coordinates. Apart from <code>'''heading'''</code>, this information is not used by {{tl|{{PAGENAME}}}} template. Attributes have to be in the format <code>field1:value1_field2:value2_field3:value3</code>, etc. The following fields are supported: | ||
*<code>'''region:'''XX-YYY</code> specifies the political region, used to select appropriate map resources. See [[:en:Wikipedia:WikiProject_Geographical_coordinates#region:R|here]] for more info. | *<code>'''region:'''XX-YYY</code> specifies the political region, used to select appropriate map resources. See [[:en:Wikipedia:WikiProject_Geographical_coordinates#region:R|here]] for more info. | ||
:*<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 | ||
Revision as of 16:39, 26 January 2014
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-YYYspecifies the political region, used to select appropriate map resources. See here for more info.
XXis an ISO 3166-1 alpha 2 country code abbreviation, andYYYis 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 Points of the compass. (Example: heading:NW)scale:Nspecifies 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:120mordim: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.