Content deleted Content added
test, add icon class |
sync to live |
||
Line 89:
end
local bubble = function(text, shortText, colour
local out
["FA"] = "#BED3FF",
["FL"] = "#BED3FF",
▲ local paleColours = {
["NA"] = "#F5F5F5"
}
if paleColours[shortText] then
local paleColour = paleColours[shortText]
out = mw.html.create('span')
Line 354 ⟶ 357:
table.insert(rows, class_row)
if class~='' then
local new_bubble = bubble(▼
)▼
▲ table.insert(nested_ratings, 1, new_bubble)
▲ class .. '‑class',
▲ frame:expandTemplate{ title = 'Class/colour', args = {class} },
table.insert(nested_ratings, 1, new_bubble)▼
end
end
Line 410 ⟶ 402:
table.insert(rows, importance_row)
if importance~='Unknown' then -- importance is not NA or Unknown
▲ local new_bubble = bubble(
▲ )
▲ local new_bubble = bubble(
▲ importance .. '‑' .. importance_name,
▲ frame:expandTemplate{ title = 'Importance/colour', args = {importance} },
▲ )
end
end
Line 673 ⟶ 654:
end
local status_class = (cfg.status[args.PROJECT_STATUS] or cfg.status.default) .. '-wikiproject'
local banner = mw.html.create('table')
local banner_rows = banner
Line 688 ⟶ 661:
:tag('tr')
:addClass('wpb-header')
:tag('td')
:attr('width', '50px')
:css('text-align', 'center')
Line 708 ⟶ 679:
:addClass('mbox-text wpb-main')
:attr('colspan','2')
:tag('table')
for _, row in ipairs(rows) do
|