Custom GeoHack replacement (source) – Use your own custom page with only links you choose, and with whatever formatting you want, instead of the regular GeoHack.
It support the following replacement variables found in GeoHack: {latdegdec}
{londegdec}
{scale}
{span}
{osmzoom}
Instructions
edit- Add the following line to your common.js (or skin-specific js):
{{subst:lusc|User:Evad37/Custom_GeoHack_replacement.js}}
- Create your custom GeoHack user subpage at User:YOURUSERNAME/GeoHack
- use whatever content and formatting you like
- use the replacement variables above in external links, e.g. for Google Maps use
http://maps.google.com/maps?ll={latdegdec},{londegdec}&spn={span},{span}&q={latdegdec},{londegdec}
- more urls can be found at Template:GeoTemplate
- see User:Evad37/GeoHack for an example page
- Now coordinates will link to this page instead of GeoHack (specifying real values to take the place of the replacement variables in external links)
See also
editUser:Evad37/GeoHack replacement script – alternative script which replaces GeoHack with a direct link to a single mapping provider