Anonymous user
Module:Coordinates: Difference between revisions
no edit summary
No edit summary |
No edit summary |
||
Line 38:
if long == "" or long == nil then
return
end
Line 106:
return coordinateSpec, errors
end
Line 122 ⟶ 116:
end
if args["name"] ~= "" and args["name"] ~= nil then
uriComponents = uriComponents .. "&title=" ..
end
Line 130 ⟶ 124:
.. '</span>'
local
if
local lat = tonumber( coordinateSpec["dec-lat"] ) or 0▼
if lat < 0 then▼
▲ -- FIXME this breaks the pre-existing precision
▲ else
▲ geodeclat = (coordinateSpec["dec-lat"] or 0) .. "°N"
end▼
end
local geodeclong = coordinateSpec["dec-long-display"]▼
if geodeclong == nil then▼
▲ else
▲ -- FIXME does not handle unicode minus
else▼
end
Line 219 ⟶ 206:
-- dec logic
result, errors = parseDec( args[1], args[2], args['format'] )
return errorPrinter( errors );
▲ end
result.param = table.concat( {args[1], "_N_", args[2], "_E_", args[3] } );
elseif dmsTest(args[4], args[8]) then
|