Jump to content

Module:ComplForColorModules and Module:ComplForColorModules/sandbox: Difference between pages

(Difference between pages)
Page 1
Page 2
Content deleted Content added
Undid revision 1155146599 by WOSlinker (talk)
 
Undid revision 1158203822 by WOSlinker (talk)
 
Line 11: Line 11:


local function I18nStr (S, ...)
local function I18nStr (S, ...)
return TNTT.GetMsgP (I18n, S, {...})
return TNTT.GetMsgP (I18n, S, {...})
end
end


Line 60: Line 60:
end
end


local function SColor (Color)
function SColor (Color)
if string.sub(Color,1,1) == '#' then --the usual
if string.sub(Color,1,1) == '#' then --the usual
return string.sub(Color,2,100)
return string.sub(Color,2,100)
Line 96: Line 96:
end
end


local function LegendCode(Color, Text, OutlineColor)
function LegendCode(Color, Text, OutlineColor)
local SOutlineColor = ''
local SOutlineColor = ''
if OutlineColor ~= '' then
if OutlineColor ~= '' then
Line 128: Line 128:
table.insert(Show, p.LegendColor(AColors[i],Text,''))
table.insert(Show, p.LegendColor(AColors[i],Text,''))
end
end
local SShow = table.concat(Show,"\n")
SShow = table.concat(Show,"\n")
if ColWidth then
if ColWidth then
local frame = mw.getCurrentFrame()
local frame = mw.getCurrentFrame()