Module:Bananas
Jump to navigation
Jump to search
Module:Bananas (edit | talk | history | links | watch | logs)
Example Lua module that contains a single function.
hello[edit source]
{{#invoke:Bananas|hello}}
→ Hello, world!
See also[edit source]
- Help:Lua
- Module:Basic example: Demonstrates how to use conditions and template parameters.
- 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.
External links[edit source]
- Module:Bananas at Wikipedia, the free Terran-based encyclopedia that anyone can edit.
-- For unit tests, see [[Module:Bananas/testcases]]
local p = {}
function p.hello()
return "Hello, world!"
end
return p