Module:Ups and downs sharpness: Difference between revisions

Tristanbay (talk | contribs)
removed function for drops and lift calculation (still unfinished)
Tristanbay (talk | contribs)
still unfinished but hopefully this does something now
Line 9: Line 9:


-- generate table
-- generate table
local function make_table(sharp, comma)
function p.ud_sharpness(frame)
local sharp = sharp_n(frame.args["edo"])
local thead = "{| class=\"wikitable center-all\"\n"
local thead = "{| class=\"wikitable center-all\"\n"
local tlabel = "|-\n! Step offset\n{{!}}'''0'''"
local tlabel = "|-\n! Step offset\n{{!}}'''0'''"
Line 22: Line 23:
end
end
end
end
return thead .. table.concat(tlabel, "\n|") .. "\n|}"
return frame:preprocess(thead .. table.concat(tlabel, "\n|") .. "\n|}")
end
end