Module:Ordnance Survey coordinates/doc: Difference between revisions

Content deleted Content added
set module rating
expand documentation
Line 4:
Converts a OS grid ref to a lat/long hyperlink to geohack.
 
:<code><nowiki>{{</nowiki>#invoke:{{BASEPAGENAME}}|main|SK135733<nowiki>}}</nowiki></code> ← Two-letter code interpreted as UK OS grid ref
:<code><nowiki>{{</nowiki>#invoke:{{BASEPAGENAME}}|main|O169318<nowiki>}}</nowiki></code> ← One-letter code interpreted as Irish OS grid ref
:<code><nowiki>{{</nowiki>#invoke:{{BASEPAGENAME}}|main|439668_1175316<nowiki>}}</nowiki></code> ← Two digit strings interpreted as UK easting/northing in meters
:<code><nowiki>{{</nowiki>#invoke:{{BASEPAGENAME}}|main|i88888_99999<nowiki>}}</nowiki></code> ← String starting with i is easting/northing in meters in Ireland
:<code><nowiki>{{</nowiki>#invoke:{{BASEPAGENAME}}|main|SK135733|Miller's Date<nowiki>}}</nowiki></code> ← Second argument is used as link text
:<code><nowiki>{{</nowiki>#invoke:{{BASEPAGENAME}}|main|SK135733_scale:25000_region:GB-DBY<nowiki>}}</nowiki></code> ← extra underscored parameters passed to geohack
 
== License ==