The GeoTemplate can be invoked by using {{Coord}}. An external tool fills the template with the coordinates data as described on this page.
Parameters
GeoHack (the tool that fills GeoTemplate with working links) takes two inputs:
URL parameters: Coordinates are given in the format D_M_S_N_D_M_S_E, D_M_N_D_M_E, D_N_D_E, or D;D where D is degrees, M is Minutes, S is second, and NS/EW are the directions. They can be followed by coordinate parameters such as type, scale and region, separated by underscores. On Wikipedia the URL is generated by coordinate templates.
For example, the wikitext {{coord|51|28|40|N|0|0|6|W|type:landmark_scale:2000_region:GB}} becomes params=51_28_40_N_0_0_6_W_type:landmark_scale:2000_region:GB in the URL.
The template page (contents of GeoTemplate) where variables are replaced with values computed from the data given in the URL. The rest of this page documents the available variables.
Position
GeoHack provides the following variables based on the given coordinates (51_28_40_N_0_0_6_W in the example above).
GeoHack accepts a type parameter (type:landmark in the example above) from which it will calculate a scale value when none is supplied. The following chart shows the types currently understood by GeoHack, the scale ratio associated with each, plus the additional variables calculated by GeoHack.
The default values can for each type can be overridden by also supplying a scale. For example, type:airport is assigned a 300000 of 30000, while type:airport_scale:10000 uses the supplied 300000 of 10000.
For detailed implementation see [httphttps://fisheye.toolserver.org/browse/geohack/www/mapsources.php mapsources.php]
Miscellaneous
HK, , - Look up page from Wikipedia. See if we have something in Wikipedia:Map sources or equivalent. A subpage can be specified
Hong_Kong - The value from the pagename key in the query (e.g. &pagename=Article) (URI scheme#Generic syntax) - FULLPAGENAMEE expected. When used with {{Coord}} this returns the containing article name with whitespace replaced by underscores. For example: Bellevue Botanical Garden becomes Bellevue_Botanical_Garden.
Hong Kong - The value from the title key in the query (e.g. &title=Name). If not given in the query, is the same as Hong_Kong.
Section coding
When the parameters contain a region or GeoHack finds the region with the coordinates, a matching section is moved to the location marked with the placeholder:
<divid="GEOTEMPLATE-LOCAL"></div>
The region sections are wrapped in an element where the XX of the id is the ISO 3166-1 alpha-2 code: