टेम्पलेट:GeoTemplate/doc: रिवीजन सभ के बीचा में अंतर
Content deleted Content added
छो १ revision imported from en:Template:GeoTemplate/doc |
छो Bot: Replace deprecated <source> tag and "enclose" parameter; cosmetic changes |
||
लाइन 4:
The [[{{FULLBASEPAGENAME}}|{{BASEPAGENAME}}]] can be invoked by using {{Tl|Coord}}. An external tool fills the template with the coordinates data as described on this page.
== Parameters ==
GeoHack (the tool that fills {{BASEPAGENAME}} 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 {{anchor|type}}[[
* The template page (contents of {{BASEPAGENAME}}) 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 (<tt>51_28_40_N_0_0_6_W</tt> in the example above).
लाइन 20:
** <tt>{latmindec}, {lonmindec}</tt> - [[World Geodetic System|WGS84]] Decimal minutes
** <tt>{latminint}, {lonminint}</tt> - [[World Geodetic System|WGS84]] Integer minutes
** <tt>{latNS}, {lonEW}
** <tt>{latsecdec}, {lonsecdec}</tt> - [[World Geodetic System|WGS84]] Decimal seconds
** <tt>{latsecint}, {lonsecint}</tt> - [[World Geodetic System|WGS84]] Integer seconds
** <tt>{latantipodes},
*UTM
** <tt>{utmnorthing} {utmeasting} {utmzone}</tt> - [[Universal Transverse Mercator coordinate system|UTM coordinate]]
** <tt>{utm33northing},
*National grids
** <tt>{ch1903easting}, {ch1903northing}</tt> - [[Swiss coordinate system|CH1903+ coordinate]]
** <tt>{osgb36ref}</tt> - [[British national grid reference system|Ordnance Survey Grid reference]]
** <tt>{osgb36northing}, {osgb36easting}</tt> -
** <tt>{nztmeasting}, {nztmnorthing}</tt> - New Zealand Transverse Mercator coordinate (not active?)
Other national grids are supported through specific tools: Finland ([[tools:~para/kkj.php]]), Tokyo datum ([[tools:~para/cgi-bin/wgs2tky]])
=== Scaling ===
GeoHack accepts a '''scale''' parameter (<tt>scale:2000</tt> in the example above) which it uses to provide scaling or zoom values for different mapping services.
लाइन 157:
For detailed implementation see [httphttps://fisheye.toolserver.org/browse/geohack/www/mapsources.php mapsources.php]
=== Miscellaneous ===
* <tt>{region}, {globe}, {page}</tt> -
* <tt>{pagename}</tt> - The value from the pagename key in the query (e.g. &pagename=Article) ([[URI scheme#Generic syntax]]) - [[
* <tt>{title}</tt> - The value from the title key in the query (e.g. &title=Name). If not given in the query, is the same as <tt>{pagename}</tt>.
[[
== Section coding ==
लाइन 167:
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:
<
The region sections are wrapped in an element where the XX of the id is the [[ISO 3166-1 alpha-2]] code:
<
...
</div></
|