Module:RoundN: Difference between revisions

Content deleted Content added
save
save
Line 26:
table.insert(param[#param], v)
return param
end
 
function teamBox(html)
last.cell = last.row:tag('td')
last.cell
:css('background-color', '#f9f9f9')
:css('border', '1px solid #aaa')
:css('padding', '0 2px')
:wikitext(html)
--if span then
last.cell:attr('colspanrowspan', 2)
--end
end
 
Line 78 ⟶ 90:
end
local step = 1
local rows = args.columns * 612
for k = 1, rows do
newRow(true)
if k % 2 == 1 then
last.cell = last.row:tag('td')
last.cell:attr('colspan', 2)
if (k - 1) % 3 == 0 then
last.cell = last.row:tag('td')
last.cell:wikitext(details[step])
last.cell:attr('rowspan', 2)
else
last.cell
:css('background-color', '#f9f9f9')
:css('border', '1px solid #aaa')
:css('padding', '0 2px')
if (k - 1) % 3 == 1 then
last.cell:wikitextteamBox(teams[step][1])
teamBox(scores[step][1])
else
last.cell:wikitextteamBox(teams[step][2])
teamBox(scores[step][2])
step = step + 1
end
end
end
end
return output