If
Jump to navigation
Jump to search
Documentation for this module may be created at doc
local p = {}
function p.ifNotNull(frame)
local valore = mw.text.trim(frame.args[1])
local valoreDefault = mw.text.trim(frame.args[2])
local pre = frame.args[3] or ''
local post = frame.args[4] or ''
if valore and valore ~= '' then
return pre..valore..post
else
return valoreDefault
end
end
return p