Module:ParserFunctions
Documentation for this module may be created at Module:ParserFunctions/doc
local p = {}
function p.If(frame)
function notBlank(x)
return not tostring(x):find("^%s*$")
end
if notBlank(frame.args[1]) then
return frame.args[2]
else
return frame.args[3]
end
end
return p