Modul:Location map: Perbedaan antara revisi
Konten dihapus Konten ditambahkan
Hidayatsrf (bicara | kontrib) Show map of > Tampilkan peta |
Hidayatsrf (bicara | kontrib) terjemahkan pesan galat |
||
Baris 12:
function p.getMapParams(map, frame)
if not map then
error('
end
local moduletitle = mw.title.new('Module:Location map/data/' .. map)
if not moduletitle then
error(string.format('%q
elseif moduletitle.exists then
local mapData = mw.loadData('Module:Location map/data/' .. map)
Baris 31:
end
else
error('
end
end
Baris 71:
return retval
end
error('
elseif seconds and not minutes then
error('Seconds were provided for ' .. direction .. ' without minutes also being provided', 2)
Baris 84:
decimal = tonumber(degrees)
if not decimal then
error('
elseif minutes and not tonumber(minutes) then
error('
elseif seconds and not tonumber(seconds) then
error('
end
decimal = decimal + (minutes or 0)/60 + (seconds or 0)/3600
Baris 113:
mw.logObject(para, 'para')
mw.logObject(coord, 'coord')
return error('
end
return tonumber(result[1]) * hemisphereMultipliers[para][result[2]]
|