Module:WikiProject banner/sandbox: Difference between revisions

Content deleted Content added
Must be a non-breaking hyphen or the bubble will wrap over two lines on very small screens
HOOK_NESTED_ASSESS ("Inactive") was non-functional because we concatenated a table to a string
Line 622:
nested_tf_str = nested_tf_str .. ' ' .. args.HOOK_NESTED
end
local nested_ratings_str = #nested_ratings>0 and table.concat(nested_ratings, '') or ''
if args.HOOK_NESTED_ASSESS then
local new_bubble = bubble(
nested_ratings_str = nested_ratings_str .. mw.html.create('span'):addClass('wpb-header-bubbles'):wikitext(args.HOOK_NESTED_ASSESS):done()
args.HOOK_NESTED_ASSESS,
'',
frame:expandTemplate{ title = 'Importance/colour', args = {importance} },
args.mockup
)
table.insert(nested_ratings, new_bubble)
end
local nested_ratings_str = #nested_ratings>0 and table.concat(nested_ratings, '') or ''
local status_class = (cfg.status[args.PROJECT_STATUS] or cfg.status.default) .. '-wikiproject'
local banner = mw.html.create('table')