Module:Dash: Difference between revisions

ArrowHead294 (talk | contribs)
mNo edit summary
ArrowHead294 (talk | contribs)
mNo edit summary
Line 1: Line 1:
local p = {};
local yesno = require("Module:yesno")
local p = {}


function p.dashes(frame)
function p.dashes(frame)
Line 6: Line 7:
local d = frame.args["d"]
local d = frame.args["d"]
local d2 = frame.args["d2"]
local d2 = frame.args["d2"]
local debugg = frame.args["debug"]
local debugg = yesno(frame.args["debug"])
if s == "thin" then
if s == "thin" then
Line 56: Line 57:
end
end
return frame:preprocess(debugg == "true" and "<pre>" .. out_str .. "</pre>" or out_str)
return frame:preprocess(debugg == true and "<pre>" .. out_str .. "</pre>" or out_str)
end
end


return p
return p