Content deleted Content added
work in progress |
more |
||
Line 88:
end
local bubble = function(text,
local colour = cfg.quality.colours[short_text] or default_colour▼
local out = mw.html.create('span')
:addClass('wpb-header-bubbles')
Line 310 ⟶ 309:
or cfg.quality.default_scale
local quality_rating = cfg.quality.rating:format(pagetype, rating, scale)
if not colour then
end
local text = wikilink(':Category:' .. category, class)▼
local icon = cfg.quality.icon[class]
local class_row = mw.html.create('tr')
:tag('td')
:addClass('assess'):addClass('assess-' .. class :css('background', colour):wikitext(label)
:done()
:tag('td'):addClass('mbox-text'):attr('colspan', '2'):wikitext(quality_rating)
:allDone()
Line 326 ⟶ 325:
local new_bubble = bubble(
class=='' and 'Unassessed' or (class .. '‑class'),
▲ frame:expandTemplate{ title = 'Class/colour', args = {class} },
conflict
)
|