Jump to content

Module:Wnt/Templates/Parameters

Unchecked
From Wikipedia

Documentation for this module may be created at Module:Wnt/Templates/Parameters/doc

local p={}
function p.main(frame)
   return "aa = " .. frame.args.aa .. "<br />aA = " .. frame.args.aA .. "<br />Aa = " .. frame.args.Aa .. "<br />AA = " .. frame.args.AA .. "<br />Unnamed parameters are: <br />#1 = " .. frame.args[1] .. "<br />#2 = " .. frame.args[2]

end

function p.recoverable(frame)
   return "aa = " .. (frame.args.aa or "NO aa") .. "<br />aA = " .. (frame.args.aA or "NO aA") .. "<br />Aa = " .. (frame.args.Aa or "NO Aa") .. "<br />AA = " .. (frame.args.AA or "NO AA") .. "<br />Unnamed parameters are: <br />#1 = " .. (frame.args[1] or "NO #1") .. "<br />#2 = " .. (frame.args[2] or "NO #2")

end

return p