Module:Bananas
Jump to navigation
Jump to search
This is an example Lua module for testing and demonstration purposes.
Usage
Wikitext
The module can be called from wikitext with the functions listed below.
hello
{{#invoke:Bananas| hello }}
Displays an exemplary text.
Code | Result |
---|---|
{{#invoke:Bananas|hello}}
|
Hello, world! |
Other modules
The module can be called from another module with the functions listed below.
hello
require('Module:Bananas').hello()
Returns an exemplary text.
Code | Variable result
|
---|---|
local bananas = require('Module:Bananas')
local result = bananas.hello()
|
'Hello world'
|