Jump to content

Module:Test

From Consumer_Action_Taskforce
Revision as of 05:39, 30 January 2025 by Louis (talk | contribs) (Created page with "local p = {} function p.add(frame) local num1 = tonumber(frame.args[1]) or 0 local num2 = tonumber(frame.args[2]) or 0 return num1 + num2 .. " (this was calculated by Lua!)" end return p")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Documentation for this module may be created at Module:Test/doc

local p = {}

function p.add(frame)
    local num1 = tonumber(frame.args[1]) or 0
    local num2 = tonumber(frame.args[2]) or 0
    return num1 + num2 .. " (this was calculated by Lua!)"
end

return p