Module:Q-odd-limit intervals: Difference between revisions

ArrowHead294 (talk | contribs)
m Multiple lines is easier to read
ArrowHead294 (talk | contribs)
mNo edit summary
Line 3: Line 3:
ET = require("Module:ET")
ET = require("Module:ET")
limits = require("Module:Limits")
limits = require("Module:Limits")
yesno = require("Module:yesno")


local p = {}
local p = {}
Line 227: Line 228:
local limit = math.max(tonumber(frame.args["limit"]), 2)
local limit = math.max(tonumber(frame.args["limit"]), 2)
local constcy = limits.consistency_limit(ET.parse(steps .. "edo"), false, 43)
local constcy = limits.consistency_limit(ET.parse(steps .. "edo"), false, 43)
     local debugg = frame.args["debug"]
     local debugg = yesno(frame.args["debug"])
local note = frame.args["note"]
local note = frame.args["note"]
local title = frame.args["title"]
local title = frame.args["title"]
Line 270: Line 271:
out_str = out_str .. approx(steps, subgroup, monzo_list, title, tag, "direct") .. "\n\n" .. approx(steps, subgroup, monzo_list, title, tag, "val")
out_str = out_str .. approx(steps, subgroup, monzo_list, title, tag, "direct") .. "\n\n" .. approx(steps, subgroup, monzo_list, title, tag, "val")
end
end
return frame:preprocess(debugg == "true" and "<pre>" .. out_str .. "</pre>" or out_str)
return frame:preprocess(debugg == true and "<pre>" .. out_str .. "</pre>" or out_str)
end
end


return p
return p