Module:Bananas

From Roleplay UK Wiki
Revision as of 14:08, 15 April 2019 by Jaffa (talk | contribs) (Add test module)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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