Module:Bananas

Example Lua module that contains a single function.

hello

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

See also

wikipedia:Category:Module example


-- For unit tests, see [[Module:Bananas/testcases]]
local p = {}

function p.hello()
	return "Hello, world!"
end

return p