Difference between revisions of "Module:Bananas"
Jump to navigation
Jump to search
(Add test module) |
(No difference)
|
Revision as of 14:08, 15 April 2019
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