Content deleted Content added
add all the newlines |
poke |
||
Line 107:
local root = mw.html.create('table')
root:addClass('progression-rainbow'):attr('role', 'presentation'):tag('tr')
-- We add a tr here. MediaWiki (Remex we think) adds a second. One of
for _, class in ipairs(classes) do
Line 116 ⟶ 115:
local percentage = class_percent(class.count, total)
root:newline() -- sprinkled through to make the HTML easier to read
▲ -- added deliberately, we get a <tr class='empty'></tr> hanging
root:tag('td')
:css('background', frame:expandTemplate{
|