Module:WikiProject banner/sandbox: Difference between revisions

Content deleted Content added
don't need this then
move importance colours to styles
Line 459:
or cfg.importance.default_scale
local importance_rating = cfg.importance.rating:format(pagetype, rating, scale)
--local colour = cfg.importance.colour[importance] or cfg.importance.colour.default
local importance_row = mw.html.create('tr')
:tag('td')
:addClass('assess'):addClass('import')
:addClass('importimportance-' .. importance:lower())
:addClass('import-' .. importance)
:css('background', colour)
:css('color', 'black') --TODO: move to styles
:wikitext(wikilink(':Category:' .. category, importance=='Unknown' and '???' or importance))
:done()