Module:Bananas

From Wikisource
Jump to navigation Jump to search
Module documentation[view] [edit] [history] [purge]


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