Content deleted Content added
this class does not exist |
implement class colours from templatestyles |
||
Line 152:
end
local bubble = function(text
local out = mw.html.create('span')
:addClass('wpb-header-bubbles')
:addClass(style)
:addClass(conflict and 'conflict')
:wikitext(text)
return tostring(out)
Line 422 ⟶ 420:
local quality_rating = conflict and cfg.banner_shell.conflict.text or cfg.quality.rating:format(pagetype, rating, scale)
local colour = cfg.quality.colour[class] or cfg.quality.colour.default
local cssClass = 'class-' .. (class=='' and 'unassessed' or class:lower())
local class_row = mw.html.create('tr')
:tag('td')
:addClass('assess')
:addClass(
:wikitext(wikilink(':Category:' .. category, class=='' and '???' or class))
:css('border', conflict and cfg.banner_shell.conflict.border or (cfg.quality.border..' '..colour))
Line 439 ⟶ 437:
nested_ratings,
1,
bubble(class=='' and 'Unassessed' or (class..'‑class'),
)
end
Line 466 ⟶ 464:
local importance_rating = cfg.importance.rating:format(pagetype, rating, scale)
--local colour = cfg.importance.colour[importance] or cfg.importance.colour.default
local cssClass = 'importance-' .. importance:lower()
local importance_row = mw.html.create('tr')
:tag('td')
:addClass('assess')
:addClass(
:wikitext(wikilink(':Category:' .. category, importance=='Unknown' and '???' or importance))
:done()
Line 481 ⟶ 480:
table.insert(
nested_ratings,
bubble(importance..'‑'..importance_name
)
end
|