Module:Bananas
Revision as of 14:12, 15 April 2019 by Jaffa (talk | contribs) (Jaffa moved page Module:Banana to Module:Bananas without leaving a redirect)
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