Module:Bananas

From Wikipedia, the free encyclopedia
Jump to: navigation, search
Documentation icon Module documentation[view] [edit] [history] [purge]

Module:Bananas (talk · edit · hist · links · doc · subpages · tests (results· sandbox (edit · subpages))

Example Lua module that contains a single function.

hello[edit]

  • {{#invoke:bananas|hello}} → Hello, world!

See also[edit]

-- For unit tests, see [[Module:Bananas/testcases]]
local p = {}
 
function p.hello()
	return "Hello, world!"
end
 
return p