Module:Solar eclipse: Difference between revisions

Jump to navigation Jump to search
Content deleted Content added
Tretrid (talk | contribs)
m 1 revision imported from wikipedia:Module:Solar_eclipse
Tretrid (talk | contribs)
No edit summary
Line 113: Line 113:
setarg('gamma', dargs['Gam'])
setarg('gamma', dargs['Gam'])
setarg('magnitude', dargs['Mag'])
setarg('magnitude', dargs['Mag'])
setarg('saros', dargs['Saros'] and '[[Solar Saros ' .. dargs['Saros'] .. '|' .. dargs['Saros'] .. ']]')
setarg('saros', dargs['Saros'] and '[[w:Solar Saros ' .. dargs['Saros'] .. '|' .. dargs['Saros'] .. ']]')
setarg('saros_sequence', dargs['Mem'])
setarg('saros_sequence', dargs['Mem'])
setarg('saros_total', dargs['Max'])
setarg('saros_total', dargs['Max'])
Line 136: Line 136:
local abovestr = ifnotempty(args['date'],
local abovestr = ifnotempty(args['date'],
"Solar eclipse of " .. (args['date'] or ''),
"Solar eclipse of " .. (args['date'] or ''),
"For instructions on use, see [[Template:Infobox Solar eclipse]]")
"For instructions on use, see [[w:Template:Infobox Solar eclipse]]")
local bgcolor = args['background'] or args['bgcolour'] or ''
local bgcolor = args['background'] or args['bgcolour'] or ''
local mapstr = ifnotempty(args['map'],
local mapstr = ifnotempty(args['map'],
Line 160: Line 160:
["label3"] = "Nature",
["label3"] = "Nature",
["data3"] = args['nature'] or '',
["data3"] = args['nature'] or '',
["label4"] = "[[Gamma (eclipse)|Gamma]]",
["label4"] = "[[w:Gamma (eclipse)|Gamma]]",
["data4"] = args['gamma'] or '',
["data4"] = args['gamma'] or '',
["label5"] = "[[Magnitude of eclipse|Magnitude]]",
["label5"] = "[[w:Magnitude of eclipse|Magnitude]]",
["data5"] = args['magnitude'] or '',
["data5"] = args['magnitude'] or '',
------------------ Maximum eclipse ------------------
------------------ Maximum eclipse ------------------
Line 176: Line 176:
["data11"] = args['max_width'] or '',
["data11"] = args['max_width'] or '',
----------------------- Times -----------------------
----------------------- Times -----------------------
["header12"] = "Times ([[UTC]])" .. (args['times_ref'] or ''),
["header12"] = "Times ([[w:UTC]])" .. (args['times_ref'] or ''),
["label13"] = "(P1) Partial begin",
["label13"] = "(P1) Partial begin",
["data13"] = args['start_partial'] or '',
["data13"] = args['start_partial'] or '',
Line 193: Line 193:
------------------------ Event references -------------------------
------------------------ Event references -------------------------
["header20"] = "References",
["header20"] = "References",
["label21"] = "[[Saros (astronomy)|Saros]]",
["label21"] = "[[w:Saros (astronomy)|Saros]]",
["data21"] = (args['saros'] or '')
["data21"] = (args['saros'] or '')
.. " (" .. (args['saros_sequence'] or '') .. " of " .. (args['saros_total'] or '') .. ")",
.. " (" .. (args['saros_sequence'] or '') .. " of " .. (args['saros_total'] or '') .. ")",