Module:WikiProject banner/sandbox: Difference between revisions

Content deleted Content added
move main article checking to only happen if MAIN_TEXT not set
red border in bubble for conflicting ratings
Line 86:
end
 
local bubble = function(text, short_text, default_colour, conflict)
local colour = cfg.pale_colours[short_text] or default_colour
local out = mw.html.create('span')
:addClass('wpb-header-bubbles')
:css('background', colour)
:css('border', conflict=='X' and '0.5em solid rec' or ('0.075em solid ' .. colour))
:wikitext(text)
return tostring(out)
Line 273:
show_quality = false
else -- article class exists and differs from local class
show_quality = 'X'
add_category('Articles with conflicting quality ratings')
end
Line 305 ⟶ 306:
class .. '‑class',
class,
frame:expandTemplate{ title = 'Class/colour', args = {class} },
show_quality
)
table.insert(nested_ratings, 1, new_bubble)