Module:Bananas

Revision as of 14:12, 15 April 2019 by Jaffa (talk | contribs) (Jaffa moved page Module:Banana to Module:Bananas without leaving a redirect)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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