Module:Module sandbox
Appearance
Welcome to the module sandbox. Use this place to experiment with module editing. Code written here will not stay here permanently. Template:Module sandbox
Usage
{{#invoke:Module sandbox|function_name}}
Example
{{#invoke:Module sandbox|main}}
yields:
Script error: The function "main" does not exist.
Documentation
Package items
Other items
--- Welcome to the module sandbox.
-- Use this place to experiment with module editing.
-- Code written here will not stay here permanently.
-- {{Module sandbox}}
--
-- @module sandbox
-- @alias p
local p = {}
--- Prints hello world
-- @todo make it say "Hello, [name]".
-- @return hello world string.
p.hello_world = function()
return "Hello world!"
end
return p