Module:Currency: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
No edit summary |
InvalidCards (talk | contribs) No edit summary |
||
Line 4: | Line 4: | ||
local args = frame:getParent().args |
local args = frame:getParent().args |
||
local a = args[1] or args.Amount or args.amount or '0' |
local a = args[1] or args.Amount or args.amount or '0' |
||
return p.parse(a) |
|||
return p.parse(val) |
|||
end |
end |
||
function p.parse(a) |
function p.parse(a) |
||
val = tonumber(a) |
|||
if val == nil then |
if val == nil then |
||
return nil |
return nil |