Module:WikiProject banner/sandbox: Difference between revisions

Content deleted Content added
fix
fix
Line 320:
:allDone()
table.insert(rows, class_row)
local new_bubble = bubble(class=='' and 'Unassessed' or (class..'‑class'), colour, conflict)
class=='' and 'Unassessed' or (class .. '‑class'),
conflict
)
table.insert(nested_ratings, 1, new_bubble)
end
Line 347 ⟶ 344:
or cfg.importance.default_scale
local importance_rating = cfg.importance.rating:format(pagetype, rating, scale)
local colour = cfg.importance.colour[importance] or frame:expandTemplate{ title = 'Importance/colour', args = {importance} }
local importance_row = mw.html.create('tr')
importance_row
Line 354 ⟶ 352:
table.insert(rows, importance_row)
if importance~='Unknown' then -- importance is not NA or Unknown
local new_bubble = bubble(importance..'‑'..importance_name, colour)
importance .. '‑' .. importance_name,
importance,
frame:expandTemplate{ title = 'Importance/colour', args = {importance} }
)
table.insert(nested_ratings, new_bubble)
end