Module:Tree chart/data/sandbox: Difference between revisions

Content deleted Content added
Jackmcbarn (talk | contribs)
fix rendering
Jackmcbarn (talk | contribs)
move mw.html up a level
Line 358:
retval[k] = {}
for k2,v2 in pairs(v) do
local renderedCells = {}mw.html.create()
for k3,v3 in ipairs(v2) do
renderedCells[k3] = tostring(mw.html.create:tag('td', {selfClosing = true}):css(v3.style or {}):attr(v3.attr or {}))
end
retval[k][k2] = table.concattostring(renderedCells)
end
end