Content deleted Content added
le drp |
clean some |
||
Line 109:
root:addClass('progression-rainbow')
:attr('role', 'presentation')
:tag('tr')
for _, class in
if class.count ~= 0 then
local percentage = class_percent(class.count, total)
-- root:newline() -- sprinkled through to make the HTML easier to read
-- I don't understand why we don't need to create a 'tr'. When
Line 119 ⟶ 120:
-- out. Possibly a consequence of Remex instead of HTML Tidy
-- or maybe mw.html is just smarter than me.
root:tag('td')
:css('background', frame:expandTemplate{
title = 'class/colour', args = { class.class }
Line 131 ⟶ 132:
end
end
local remaining = percent_remaining(sum_classes, total)
Line 140 ⟶ 141:
:tag('span')
:wikitext(string.format('%s remaining', remaining))
end
return frame:extensionTag{
|