Module:Bananas
From Wikipedia, the free encyclopedia
Module:Bananas (talk · · hist · links · doc · subpages · tests (results) · sandbox ( · subpages))
Example Lua module that contains a single function.
hello[edit]
{{#invoke:bananas|hello}}→ Hello, world!
See also[edit]
- 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.
| The above documentation is transcluded from Module:Bananas/doc. (edit | history) Editors can experiment in this module's sandbox (edit | diff) and testcases (edit | run) pages. Subpages of this module. |
-- For unit tests, see [[Module:Bananas/testcases]]
local p = {}
function p.hello()
return "Hello, world!"
end
return p