Module:Bananas
Jump to navigation
Jump to search
Example Lua module that contains a single function.
hello[සංස්කරණය]
{{#invoke:bananas|hello}}
→ Hello, world!
See also[සංස්කරණය]
- Help:Lua
- Module:BananasArgs: Demonstrates how to access and use parameters.
- Module:Sandbox: For practice/experimental/testing modules
- Module:HelloWorld same type of program, with more explanation.
-- For unit tests, see [[Module:Bananas/testcases]]
local p = {}
function p.hello()
return "Hello, world!"
end
return p