Module:Sandbox/Andreyyshore/Vertical header: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 31:
)
end
local dom1 = mw.html.create("tr")
local dom2
if #t == 1 then
return t[1]
end
local dom1 = mw.html.create("tr")
local dom2
for _, v in pairs(t) do
dom1:wikitext(
tostring(
mw.html.create("td")
:css({border = "none", padding = 0})
:wikitext(v)))
)
)
end
dom2 = mw.html.create("table"):wikitext(tostring(dom1)):css("margin", 0):css("border-collapse", "collapse"):attr({cellspacing = 0, cellpadding = 0})
:wikitext(tostring(dom1))
:css({
["margin"] = 0,
["border-collapse"] = "collapse",
["vertical-align"] = "inherit"
})
:attr({cellspacing = 0, cellpadding = 0})
return tostring(dom2)
end