CodeDiscussionEditHistoryLinksLink count Subpages:DocumentationTestsResultsSandboxLive code All modules

This is the documentation page for Module:Oscoor

Usage

edit

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

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

License

edit
  This work is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2. This work is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See version 2 of the GNU General Public License for more details.