Module:Coordinates: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
No edit summary
No edit summary
Line 220: Line 220:
function formatTest(args)
function formatTest(args)
local result, errors;
local result, errors;
local primary = false;
if args[1] == "" then
if args[1] == "" then
Line 229: Line 230:
if result == nil then
if result == nil then
return errorPrinter( errors );
return errorPrinter( errors );
end
end
result.param = table.concat( {args[1], "_N_", args[2], "_E_", args[3] } );
result.param = table.concat( {args[1], "_N_", args[2], "_E_", args[3] } );
elseif dmsTest(args[4], args[8]) then
elseif dmsTest(args[4], args[8]) then
Line 492: Line 493:
local text = ''
local text = ''
if string.find( Display, 'inline' ) ~= nil then
if string.find( Display, 'inline' ) ~= nil or Display == 't' or
Display == 'it' or Display == 'ti' then
text = text .. displayinline(contents)
text = displayinline(contents)
end
end
if string.find( Display, 'title' ) ~= nil then
if string.find( Display, 'title' ) ~= nil or Display == 'i' or
Display == 'it' or Display == 'ti' then
text = text .. displaytitle(contents)
text = text .. displaytitle(contents)
end
end