Module:WikiProject banner/sandbox: Difference between revisions

Content deleted Content added
Should work
switch to sandbox class/importance colours with better contrast
Line 306:
:allDone()
table.insert(rows, class_row)
local class_color = frame:expandTemplate{ title = 'Class/colour/sandbox', args = {class} }
table.insert(nested_ratings, '<span class="wpb-header-bubbles" style="background: ' .. class_color .. ';border: .075em solid ' .. class_color .. ';">' .. class .. '-class</span>')
end
Line 346:
table.insert(rows, importance_row)
if importance~='Unknown' then -- importance is not NA or Unknown
local importance_color = frame:expandTemplate{ title = 'Importance/colour/sandbox', args = {importance} }
table.insert(nested_ratings, 1, '<span class="wpb-header-bubbles" style="background: ' .. importance_color .. ';border: .075em solid ' .. importance_color .. ';">' .. importance .. '-' .. importance_name ..'</span>')
end