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

{{#invoke:hello|hello_world}}

Example

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

p = {}

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

return p