Module:College color/sandbox: Difference between revisions

Content deleted Content added
No edit summary
update to match Template:color box
Line 323:
local r = mw.html.create('')
r:tag('span')
:addClass('legend-color')
:css('background-color', '#' .. (h or ''))
:wikitext('    ')
:css('border', '1px solid #000')
:wikitext('    ')
return tostring(r)
end
Line 355:
 
if (#colorboxes > 0) then
return frame:extensionTag{ name = 'templatestyles', args = { src = 'Legend/styles.css'} } .. table.concat(colorboxes, sep)
end