Module:Bananas
From Infogalactic: the planetary knowledge core
Module:Bananas (talk<dot-separator> <dot-separator>hist<dot-separator>links<dot-separator>doc<dot-separator>subpages<dot-separator>tests (results)<dot-separator>sandbox ( · subpages))
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