Jump to content

Module:Test: Difference between revisions

From Consumer Rights Wiki
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"
 
(No difference)

Latest revision as of 05:39, 30 January 2025

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