Content deleted Content added
add class assess |
fix |
||
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 then
local category = (importance=='' and 'Unknown' or importance) .. '-' .. importance_name .. ' ' .. assessment_cat if
and cfg.importance.project_scale:format(assessment_link..'#'..lang:ucfirst(scale_name), scale_name)
or cfg.importance.default_scale
:tag('td')
:addClass('assess'):addClass('import'):addClass('import-' .. importance)
:css('background', colour):wikitext(wikilink(':Category:' .. category, importance=='Unknown' and '???' or importance))
:done()
:tag('td'):addClass('mbox-text'):attr('colspan', '2'):wikitext(importance_rating)
table.insert(
nested_ratings,
bubble(importance..'‑'..importance_name, colour)
)
end▼
end
▲end
add_category(category)
end
|