Pergi ke kandungan

Modul:Hello

Daripada Wikibuku

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

Usage

[sunting]
{{#invoke:hello|hello_world}}

Example

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

p = {}

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

return p