Content deleted Content added
remove Template:Class/colour |
define category earlier |
||
Line 339:
local importance = importance_mask(raw_args.importance or raw_args.priority, class, args.IMPORTANCE_SCALE, banner_name)
local importance_name = args.IMPN or (raw_args.priority and 'priority' or cfg.importance.default_name)
if importance and importance~='NA' then -- display importance rating
local rating = importance=='Unknown' and cfg.importance.not_yet or cfg.importance.rated:format(importance, importance_name)
Line 347 ⟶ 348:
local importance_rating = cfg.importance.rating:format(pagetype, rating, scale)
local colour = cfg.importance.colour[importance] or cfg.importance.colour.default
▲ local category = (importance=='' and 'Unknown' or importance) .. '-' .. importance_name .. ' ' .. assessment_cat
local importance_row = mw.html.create('tr')
:tag('td')
|