Module:Ordnance Survey coordinates/sandbox: Difference between revisions

Content deleted Content added
Add optional name parameter, like the Coordinates module, to set the title
No edit summary
Line 327:
end
local linktitle = args[2]
local namearg = args["name"]
local args = split(input,'_')
local LL
Line 379 ⟶ 380:
url = url..'_region:'..LL[1]
end
if args["name"]namearg then
url = url .. "&title=" .. mw.uri.encode(args["name"]namearg)
end
url = url..' '..linktitle..']'