Module:Q-odd-limit intervals: Difference between revisions
ArrowHead294 (talk | contribs) m Separate over multiple lines to make it easier to read |
ArrowHead294 (talk | contribs) mNo edit summary |
||
| Line 222: | Line 222: | ||
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 note = frame.args["note"] | local note = frame.args["note"] | ||
local title = frame.args["title"] | local title = frame.args["title"] | ||
| Line 265: | Line 265: | ||
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 out_str | return (debugg == "true" and "<pre>" .. out_str .. "</pre>" or out_str) | ||
end | end | ||
return p | return p | ||