Module:Solar eclipse and Module:Solar eclipse/sandbox: Difference between pages
Appearance
(Difference between pages)
Content deleted Content added
Grapesoda22 (talk | contribs) 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)) .. ' |
return tostring(tonumber(min)*60 + tonumber(sec)) .. ' sec' .. |
||
' (' .. min .. ' |
' (' .. min .. ' m ' .. sec .. ' s)' |
||
end |
end |
||
end |
end |
||
Line 184: | Line 184: | ||
local eclipse_types = { |
local eclipse_types = { |
||
total = { label = " |
total = { label = "Total eclipse", color = "#690005" }, |
||
partial = { label = " |
partial = { label = "Partial eclipse", color = "#c56b55" }, |
||
annular = { label = " |
annular = { label = "Annular eclipse", color = "#5555c5" }, |
||
hybrid = { label = " |
hybrid = { label = "Hybrid eclipse", color = "#55c555" } |
||
} |
} |
||