Module:Bananas

From Wikimedia Commons, the free media repository
Jump to: navigation, search
Lua
CodeDiscussionEditHistory DocumentationSubpagesLinksTestsResultsSandbox All modules


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

Example Lua module that contains a single function.

hello[edit]

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

Code

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