Module:College color/sandbox: Difference between revisions

Content deleted Content added
m Undid revision 1163936098 by Paine Ellsworth (talk) srv
Tags: Undo Reverted
sync
 
(5 intermediate revisions by 2 users not shown)
Line 6:
local p = {}
 
local data_module = "Module:College color/data/sandbox"
 
local function stripwhitespace(text)
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