Module:Ordnance Survey coordinates/sandbox: Difference between revisions

Content deleted Content added
Reverted to revision 976091149 by Hike395 (talk): Rv experiment (TW)
add argument for rawurl
Line 364:
end
-- https://geohack.toolforge.org/geohack.php?pagename=Mount_Whitney&params=36.578580925_N_118.29199495_W_type:mountain_region:US-CA_scale:100000_source:NGS
local url = '[https://geohack.toolforge.org/geohack.php?'
if not args['rawurl'] then
url = url..' '..linktitle..']['
end
url = url..'https://geohack.toolforge.org/geohack.php?'
if pagename ~= nil then
url = url..'pagename='..pagename..'&'
Line 383 ⟶ 387:
url = url .. "&title=" .. mw.uri.encode(namearg)
end
if not args['rawurl'] then
url = url..' '..linktitle..']'
url = url..' '..linktitle..']'
end
return url
end