Module:ComplForColorModules and Module:ComplForColorModules/sandbox: Difference between pages
(Difference between pages)
imported>WOSlinker |
imported>WOSlinker |
||
| 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 | ||
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 | ||
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 | ||
SShow = table.concat(Show,"\n") | |||
if ColWidth then | if ColWidth then | ||
local frame = mw.getCurrentFrame() | local frame = mw.getCurrentFrame() | ||