Module:WikiProject banner/sandbox: Difference between revisions

Content deleted Content added
move importance colours to styles
add class to bubble
Line 152:
end
 
local bubble = function(text, colour, conflict, style)
local out = mw.html.create('span')
:addClass('wpb-header-bubbles')
:addClass(style)
:css('background', colour)
:css('border', conflict and cfg.banner_shell.conflict.border or (cfg.quality.border..' '..colour))
Line 475 ⟶ 476:
table.insert(
nested_ratings,
bubble(importance..'‑'..importance_name, colournil, false, 'importance-' .. importance:lower())
)
end