Module:JI ratios in ED: Difference between revisions

ArrowHead294 (talk | contribs)
m Alphabetise dependencies
ArrowHead294 (talk | contribs)
mNo edit summary
 
Line 207: Line 207:
-- Wrapper function for primary function; to be called by template
-- Wrapper function for primary function; to be called by template
function p.ji_ratios_in_ed_frame(frame)
function p.ji_ratios_in_ed_frame(frame)
-- Parse the ed; if it's just a number, interpret it as an edo
-- Parse the ed; if it's just a number, interpret it as an edo
local input_et_unparsed = frame.args["ED"] or 12
local input_et_unparsed = frame.args["ED"] or 12
Line 234: Line 233:
local debugg = yesno(frame.args["debug"])
local debugg = yesno(frame.args["debug"])
return frame:preprocess(debugg == "true" and "<pre>" .. result .. "</pre>" or result)
if debugg == true then
result = "<syntaxhighlight lang=\"wikitext\">" .. result .. "</syntaxhighlight>"
end
return frame:preprocess(result)
end
end


return p
return p