Content deleted Content added
The Mol Man (talk | contribs) No edit summary |
The Mol Man (talk | contribs) No edit summary |
||
Line 53:
for i=1,max_week do
local week_tbl = {}
week_tbl.name = 'Week ' .. argOrCall('Week'..i)
week_tbl.date = argOrCall('Week'..i..'Date')
week_tbl.cells = {}
Line 59:
for j=1,25 do
local wkdt = string.format('Week%s-%s',i,j)
local wkcolor = string.format('Week%s-%s
wkdt = argOrCall(wkdt)
wkcolor = string.lower(argOrCall(wkcolor))
Line 68:
end
local dropped = args['Week'..i..'Dropped']
if not dropped or not
dropped = nil
end
Line 105:
for _, v in ipairs(args.weeks) do
header_row:tag('th'):wikitext(v.name)
:tag('br', { selfClosing = true }):done() :wikitext(v.date):done() end
Line 125 ⟶ 127:
for _, v in ipairs(args.weeks) do
footer_row:tag('
:tag('br', { selfClosing = true }):done() :wikitext(v.date):done() end
Line 132 ⟶ 136:
-- drop outs
local dropped_row = ret:tag('tr')
dropped_row:tag('td'):attr('colspan','2'):css({ background = 'transparent', ['border-bottom-style'] = 'hidden', ['border-left-style
for
if v.dropped and i > 1 then
dropped_row:tag('td'):css({ ['vertical-align'] = 'top', ['background-color'] = '#FFE6E6' })
:tag('b'):wikitext('Dropped:'):done()
:tag('br', { selfClosing = true }):done()
:wikitext(v.dropped)
:done()
elseif i > 1 then
dropped_row:tag('td'):css({ ['vertical-align'] = 'top', ['background-color'] = '#FFFFFF' })
:tag('i'):wikitext('None'):done()
Line 146 ⟶ 151:
end
end
dropped_row:tag('td'):css({ background = 'transparent', ['border-bottom-style'] = 'hidden', ['border-right-style
return ret
|