Content deleted Content added
Allow _label |
allow named colors to be used |
||
Line 110:
end
if notblank(rargs['color' .. i]) then
if (#color == 3 or #color == 6) and string.match(color, "^[0-9a-fA-F]*$") then
color = '#' .. color
end
image[i] = image[i] .. 'border-bottom: 6px solid ' .. color
elseif rargs.party_color ~= 'no' and notblank(rargs['party' .. i]) then
local color = mw.ustring.gsub(rargs['party' .. i], '^(%[%[%s*[^%]%[]*%]%]).*$', '%1')
Line 116 ⟶ 120:
color = fetch({[1] = color, [2] = 'color', error = 'NOTHERE'})
if color ~= 'NOTHERE' then
image[i] = image[i] .. 'border-bottom: 6px solid ' .. color
end
end
|