Module:College color/sandbox: Difference between revisions

Content deleted Content added
sync to live template
Tag: Reverted
m Undid revision 1163936098 by Paine Ellsworth (talk) srv
Tags: Undo Reverted
Line 122:
 
local color = '#' .. (colors[3] or colors[2] or '')
if fontcolor and== '' or fontcolor == 'auto' then
-- compute the luminosity of the background
local lum = color2lum(colors[1] or '')
Line 152:
 
local color = '#' .. (colors[1] or '')
if fontcolor and== '' or 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