Module:WikiProject banner/sandbox: Difference between revisions

Content deleted Content added
remove height=0
better logic for HOOK_COLLAPSED
Line 503:
if args.HOOK_NOTE then
table.insert(collapsed, args.HOOK_NOTE)
local hook_collapsed
note_count = note_count + (tonumber(args.HOOK_COLLAPSED) or 1)
if args.HOOK_COLLAPSED then
local success, result = pcall(mw.ext.ParserFunctions.expr, args.HOOK_COLLAPSED)
hook_collapsed = success and tonumber(result) or 0
if args.HOOK_COLLAPSED=='auto' then
hook_collapsed = 1
end
end
note_count = note_count + (tonumber(args.HOOK_COLLAPSED) or 1)hook_collapsed
end
---------------------------