Module:MOSes by EDO: Difference between revisions
Tag: Undo |
quick copy pasta for debugging functionality |
||
Line 147: | Line 147: | ||
local max_periods = tonumber(frame.args["Period Limit"]) or -1 | local max_periods = tonumber(frame.args["Period Limit"]) or -1 | ||
local generation_limit = tonumber(frame.args["Generation Limit"]) or -1 | local generation_limit = tonumber(frame.args["Generation Limit"]) or -1 | ||
local debugg = yesno(frame.args["debug"]) | |||
local result = p.mos_in_edo_allperiods(edo, max_periods, show_subsets, generation_limit, temperaments) | |||
-- Debugger option | |||
if debugg == true then | |||
result = "<syntaxhighlight lang=\"wikitext\">" .. result .. "</syntaxhighlight>" | |||
end | |||
return frame:preprocess(result) | |||
end | end | ||
return p | return p |