From Old School RuneScape Wiki
Jump to: navigation, search
Module documentation
This documentation is transcluded from Module:Sandbox/doc. [edit] [history] [purge]

This is the general purpose sandbox for lua modules. It can be used to test changes to existing modules, prototype new modules, experimenting with lua features, or for any other purpose.

Much like RuneScape:Sandbox, this page is free to edit for all - if you want to use code personally or for long periods without others editing it, make a personal module sandbox at Module:Sandbox/User:<insert name here> or subpages of that.

Invocations of this sandbox and personal sandboxes should be kept in userspace. If the module is intended for use in other namespaces, it should be moved out of the sandbox into a normal module and template.

See Special:PrefixIndex/Module:Sandbox/ for a list of all user sandboxes.

--General Purpose Sandbox for Testing Lua - Please Clear after using!

local p = {}

function p.main()
	local args = frame:getParent().args
	return args[1]

return p