Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

Jump to content

Module:Ordnance Survey coordinates/doc

From Wikipedia, the free encyclopedia

Usage

[edit]

Converts a OS grid ref to a lat/long hyperlink to geohack.

{{#invoke:Ordnance Survey coordinates|main|SK135733}} ← Two-letter code interpreted as OS grid ref in Great Britain
{{#invoke:Ordnance Survey coordinates|main|O169318}} ← One-letter code interpreted as Irish OS grid ref
{{#invoke:Ordnance Survey coordinates|main|439668_1175316}} ← Two digit strings interpreted as easting/northing in meters in Great Britain
{{#invoke:Ordnance Survey coordinates|main|i88888_99999}} ← String starting with i is easting/northing in meters in Ireland
{{#invoke:Ordnance Survey coordinates|main|SK135733|Miller's Dale}} ← Second argument is used as link text
{{#invoke:Ordnance Survey coordinates|main|SK135733_scale:25000_region:GB-DBY}} ← extra underscored parameters passed to geohack

Also converts from lat/long back to OS grid ref:

{{#invoke:Ordnance Survey coordinates|WGS2OSGB|53.256538|-1.799102}} → SK1350073300
{{#invoke:Ordnance Survey coordinates|LL2OS|53.256538|-1.799102}}SK1350073300
{{#invoke:Ordnance Survey coordinates|LL2OS|53.256538|-1.799102|scale:25000}}SK1350073300

License

[edit]

Tracking categories

[edit]