Content deleted Content added
No edit summary |
updates from template:color box |
||
Line 365:
local r = mw.html.create('')
r:tag('span')
:addClass('legend-color')
:css('background-color', '#' .. (h or ''))
:css('border', '1px solid #000')
:wikitext('
return tostring(r)
end
Line 427 ⟶ 428:
if (#colorboxes > 0) then
res = res .. frame:extensionTag{ name = 'templatestyles', args = { src = 'Legend/styles.css'} }
res = res .. table.concat(colorboxes, ' ')
end
|