Module:Color contrast: Difference between revisions

From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
typos
(new styleratio for parsing css style statements)
(typos)
Line 154:
local bg, fg = (args[2] or 'white'), (args[3] or 'black')
 
local slist = mw.text.split(sstyle or '', ';')
for k = 1,#slist do
s = slist[k]
local k,v = s:match( '^[%s*]*([^:]-):([^:]-)[%s;]*$' )
k = k or ''
v = v or ''
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu