Module:Sports series: Difference between revisions

Content deleted Content added
allow for section transclusion
allow for changing the table size
Line 179:
local noFlagIcons = false
local fillBlanks = args.fill_blanks and (args.fill_blanks == 'y' or args.fill_blanks == 'yes' or args.fill_blanks == '1' or args.fill_blanks == 'true')
 
-- Process the size parameter
local size
if args.size then
-- Remove trailing '%' if present and convert to number
size = tonumber((args.size:gsub('%s*%%$', '')))
if size then
size = math.max(size, 85) -- Ensure size is at least 85
end
end
 
-- Process flag parameter to determine flag template and variant
Line 228 ⟶ 238:
if args.nowrap and (args.nowrap == 'y' or args.nowrap == 'yes' or args.nowrap == '1' or args.nowrap == 'true') then
tableStyle = tableStyle .. ' white-space: nowrap;'
end
if size then
tableStyle = tableStyle .. ' font-size: ' .. size .. '%;'
end