Module:College color/sandbox: Difference between revisions

Content deleted Content added
bring the abstraction up
No edit summary
Line 228:
local function team_table_head(args, team, ctype)
local colors = get_colors(team, nil)
local borderwidth = tonumber(args['border']) or 0
-- set the default background
local background = (ctype == 'p') and
Line 246 ⟶ 247:
end
local s = 'background-color:#' .. background .. ';color:#' .. fontcolor .. ';'
if borderwidth > 0 then
local bc = (ctype == 'p') and
(colors[3] or colors[2] or '') or (colors[1] or '')
if bc ~= 'FFFFFF' then
s = s .. bordercss(bc, borderwidth)
end
end
 
local res = '|-\n'