Module:Currency: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
No edit summary
No edit summary
Line 2: Line 2:


function p.main(frame)
function p.main(frame)
mw.logObject(frame.args)
local args = frame:getParent().args
local a = args[1] or args.Amount or args.amount or '0'
mw.logObject(frame.args[1])
local a = frame.args[1] or frame.args.Amount or frame.args.amount or '0'
val = tonumber(a)
val = tonumber(a)
if val == nil then
if val == nil then