Module:Progression rainbow/sandbox: Difference between revisions

Content deleted Content added
why not root
add all the newlines
Line 109:
root:addClass('progression-rainbow')
:attr('role', 'presentation')
:newline()
root:tag('tr')
 
Line 114 ⟶ 115:
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 132 ⟶ 133:
end
end
-- root:newline()
local remaining = percent_remaining(sum_classes, total)
Line 141 ⟶ 142:
:tag('span')
:wikitext(string.format('%s remaining', remaining))
-- :done()
-- :done()
-- :newline()
end
return frame:extensionTag{