Jump to content

Module:Solar eclipse and Module:Solar eclipse/sandbox: Difference between pages

(Difference between pages)
Page 1
Page 2
Content deleted Content added
Undid revision 1283027027 by Grapesoda22 (talk)
 
Added support for previous/next in database
 
Line 67: Line 67:
local sec = s:match('^%s*%d+m%s*(%d+)s%s*$')
local sec = s:match('^%s*%d+m%s*(%d+)s%s*$')
if( min and sec ) then
if( min and sec ) then
return tostring(tonumber(min)*60 + tonumber(sec)) .. ' s' ..
return tostring(tonumber(min)*60 + tonumber(sec)) .. ' sec' ..
' (' .. min .. ' min ' .. sec .. ' s)'
' (' .. min .. ' m ' .. sec .. ' s)'
end
end
end
end
Line 184: Line 184:
local eclipse_types = {
local eclipse_types = {
total = { label = "'''Total eclipse'''", color = "#690005" },
total = { label = "Total eclipse", color = "#690005" },
partial = { label = "'''Partial eclipse'''", color = "#854739" },
partial = { label = "Partial eclipse", color = "#c56b55" },
annular = { label = "'''Annular eclipse'''", color = "#4C4CB1" },
annular = { label = "Annular eclipse", color = "#5555c5" },
hybrid = { label = "'''Hybrid eclipse'''", color = "#006600" }
hybrid = { label = "Hybrid eclipse", color = "#55c555" }
}
}