Module:Ups and downs sharpness: Difference between revisions

Tristanbay (talk | contribs)
seeing if it works without width:auto
Tristanbay (talk | contribs)
remove divwrap since that basically did nothing
Line 9: Line 9:
function p.ud_sharpness(frame) -- generate table
function p.ud_sharpness(frame) -- generate table
local sharp = sharp_n(frame.args["edo"])
local sharp = sharp_n(frame.args["edo"])
local divwrap = "<div style=\"overflow-x:auto\">\n%s</div>"
local spanf = "| <span style=\"display:inline-block; margin-bottom:-45px; transform:translate(0, %spx); white-space:nowrap;\">%s</span>\n"
local spanf = "| <span style=\"display:inline-block; margin-bottom:-45px; transform:translate(0, %spx); white-space:nowrap;\">%s</span>\n"
local arrow_marg = -2.5
local arrow_marg = -2.5
Line 139: Line 138:
tab = tab .. "|}"
tab = tab .. "|}"
tab = string.format(divwrap, tab)
end
end