Module:Sharpness documentation: Difference between revisions

ArrowHead294 (talk | contribs)
mNo edit summary
ArrowHead294 (talk | contribs)
mNo edit summary
Line 7: Line 7:
local aux_note = frame.args["auxnote"] or ""
local aux_note = frame.args["auxnote"] or ""
local notation = frame.args["notation"] or ""
local notation = frame.args["notation"] or ""
local is_debug = yesno(frame.args["debug"])
local debugg = yesno(frame.args["debug"])


-- typ: "sharp" or "flat"
-- typ: "sharp" or "flat"
Line 140: Line 140:
end
end


return frame:preprocess(is_debug == true and "<pre>" .. result .. "</pre>" or result)
return frame:preprocess(debugg == true and "<syntaxhighlight lang=\"wikitext\">" .. result .. "</syntaxhighlight>" or result)
end
end


return module
return module