Module:MOSes by EDO: Difference between revisions

Sintel (talk | contribs)
Undo revision 200124 by Sintel (talk) (it didn't)
Tag: Undo
Sintel (talk | contribs)
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"])
return p.mos_in_edo_allperiods(edo, max_periods, show_subsets, generation_limit, temperaments)
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