Content deleted Content added
Added nature subheader (standardizing with the lunar eclipse infobox) |
Cleanup |
||
Line 30:
end
local function parsedate(y, m, d)
local success, result = pcall(lang.formatDate, lang, 'F j, Y', date_str)
end
Line 179 ⟶ 180:
belowstr = string.format('<div style="width:100%%"><div class="noprint" style="text-align:right">%s →</div></div>', nextLink)
end
local eclipse_types = {
total = { label = "Total eclipse", color = "#690005" },
partial = { label = "Partial eclipse", color = "#c56b55" },
annular = { label = "Annular eclipse", color = "#5555c5" },
hybrid = { label = "Hybrid eclipse", color = "#55c555" }
}
local nature = args['nature'] and args['nature']:lower() or ''
local eclipse_config = eclipse_types[nature] or { label = "Eclipse", color = "#727272" }
eclipse_config.color,
eclipse_config.label
▲ '<span style="background-color: %s; color: white; display: block;">%s</span>',
)
|