Module:Progression rainbow: Difference between revisions

Content deleted Content added
last one
how broken does this break
Line 56:
-- set the value from arguments in classes, first column
local sum_classes = 0
for i, =class 1,in 8pairs(classes) do
if args[i] then
classes[i]class[1] = tonumber(args[i])
sum_classes = sum_classes + classes[i]class[1]
end
end
Line 67:
:attr('role', 'presentation')
for i, =class 1,8in pairs(classes) do
if classes[i]class[1] ~= 0 then
root:newline()
:tag('td')
:css('background', main_frame:expandTemplate{
title = 'class/colour', args = { classes[i]class[2] }})
:css('width', width_classes(classes[i]class[1], divisor))
:done()
end