Module:WikiProject banner/sandbox: Difference between revisions

Content deleted Content added
use default importance
conflict cfg moved
Line 92:
:addClass('wpb-header-bubbles')
:css('background', colour)
:css('border', conflict and cfg.quality.conflict_borderconflict.border or (cfg.quality.border..' '..colour))
:wikitext(text)
return tostring(out)
Line 285:
if args.QUALITY_CRITERIA~='custom' then
conflict = true
add_category(cfg.quality.conflict_categoryconflict.category)
end
end
Line 308:
and cfg.quality.project_scale:format(wikilink(assessment_link..'#'..lang:ucfirst(cfg.quality.name), cfg.quality.name))
or cfg.quality.default_scale
local quality_rating = conflict and cfg.quality.conflict_textconflict.text or cfg.quality.rating:format(pagetype, rating, scale)
local colour = cfg.quality.colour[class] or frame:expandTemplate{title='Class/colour', args={class}}
local class_row = mw.html.create('tr')
Line 314:
:addClass('assess'):addClass('assess-' .. class)
:css('background', colour):wikitext(wikilink(':Category:' .. category, class=='' and '???' or class))
:css('border', conflict and cfg.quality.conflict_borderconflict.border or (cfg.quality.border..' '..colour))
:done()
:tag('td'):addClass('mbox-text'):attr('colspan', '2'):wikitext(quality_rating)