Module:Hello

From Wikibooks, open books for an open world
Jump to navigation Jump to search
Documentation[edit] [history] [purge]

This is an example module with a single function named "hello_world". It is used in Scribunto: An Introduction/Your first module.

Usage[edit]

{{#invoke:hello|hello_world}}

Example[edit]

  • {{#invoke:hello|hello_world}} → Hello, world!
p = {}

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

return p