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