Module:Lua test: Difference between revisions

From Visual Data Wiki
Jump to navigation Jump to search
Created page with "local p = {} -- p stands for package function p.hello( frame ) return "Hello, world!" end return p"
 
No edit summary
Line 1: Line 1:
local p = {} -- p stands for package
local p = {}
function p.hello( frame )
function p.hello(frame)
     return "Hello, world!"
     return 'Hello, my ' .. frame.args[1] .. ' is ' .. frame.args[2]
end
end
return p
return p

Revision as of 16:24, 28 February 2024

Lua test documentation


local p = {}
function p.hello(frame)
    return 'Hello, my ' .. frame.args[1] .. ' is ' .. frame.args[2]
end
return p