Module:College color/sandbox: Difference between revisions

Content deleted Content added
test
sync to live template
Tag: Reverted
Line 122:
 
local color = '#' .. (colors[3] or colors[2] or '')
if fontcolor == '' orand fontcolor == 'auto' then
-- compute the luminosity of the background
local lum = color2lum(colors[1] or '')
Line 152:
 
local color = '#' .. (colors[1] or '')
if fontcolor == '' orand fontcolor == 'auto' then
-- compute the luminosity of the background
local lum = color2lum(colors[3] or colors[2] or '')
Line 486:
function p.style1(frame)
local args = (frame.args[1] ~= nil) and frame.args or frame:getParent().args
return team_style1(remove_sport(args[1] or ''), args['border'], args['color'] or '')
end
 
function p.style2(frame)
local args = (frame.args[1] ~= nil) and frame.args or frame:getParent().args
return team_style2(remove_sport(args[1] or ''), args['border'], args['color'] or '')
end