Module:Solar eclipse: Difference between revisions

Content deleted Content added
m Protected "Module:Solar eclipse": Highly visible template ([Edit=Require autoconfirmed or confirmed access] (indefinite) [Move=Require autoconfirmed or confirmed access] (indefinite))
adjust nasa link
Line 62:
end
 
local function cataloglink(c, y, m, d)
if(cy, andm, d = tonumber(cy), tonumber(m), thentonumber(d)
local if y1 = math.floor( (tonumber(yc) -and 1)y / 10 )and *m 10and +d 1then
d = (d < 10) and ('0' .. d) or d
local y2 = y1 + 99
m = (m < 10) and ('0' .. m) or m
return '[https://eclipse.gsfc.nasa.gov/SEcat5SEsearch/SESEsearchmap.php?Ecl=' .. tostring(y1)y .. '-'m .. tostring(y2)d .. '.html ' .. c .. ']'
else
return c
Line 89 ⟶ 90:
setarg('map_caption', 'Map')
setarg('type_ref', '')
setarg('cat', cataloglink(dargs['Cat'], dargs['y'], dargs['m'] or dargs['m3'] or dargs['m2'], dargs['d'] or dargs['d2']) )
setarg('nature', dargs['Ty'])
setarg('gamma', dargs['Gam'])