Module:Progression rainbow/sandbox: Difference between revisions

Content deleted Content added
swap to divs
a list feels better
Line 106:
end
local root = mw.html.create('divul')
root:addClass('progression-rainbow')
 
Line 113:
local percentage = class_percent(class.count, total)
root:newline() -- sprinkled through to make the HTML easier to read
root:tag('divli')
:css('background', frame:expandTemplate{
title = 'class/colour', args = { class.class }
Line 129:
local remaining = percent_remaining(sum_classes, total)
if remaining then
root:tag('divli')
:addClass('remaining')
:css('width', remaining)