Module:Sandbox: Difference between revisions
Jump to navigation
Jump to search
(per edit request on talk page - implement starter code) |
m (1 revision imported) |
(No difference)
|
Latest revision as of 02:59, 8 February 2024
Edits to this page are restricted to template editors because it is frequently edited by mistake. If you want to test a module, see the instructions below or use Module:Module sandbox; do not edit this page itself. |
This page is not a sandbox. It should not be used for test editing. To experiment, please use the Wikipedia sandbox, your user sandbox, or the other sandboxes. |
Scribunto testing area
This is not an actual Lua module. It exists to provide a convenient pseudo-namespace for code testing, hopefully preventing the main Module: namespace from becoming littered with experiments, as Lua modules cannot exist as subpages in the User: namespace.
Please name your experimental modules in the following format to help keep things tidy:
Module:Sandbox/Your User Name
<inputbox> type=create preload=Module:Sandbox/new editintro=Template:New module editintro prefix=Module:Sandbox/ placeholder=Insert your username here button label=Create new sandbox module </inputbox> If you need more Module sandboxes, create subpages of the sandbox thus created.
You can use Special:PrefixIndex/Module:Sandbox to list modules in this area.
--[[ Please do not edit this page. This page serves as a root for the sandbox. The following below is some starter code that you may use to get started with module writing and testing. Please feel free to take this to get started on your module. Remember to remove this top notice when copying and pasting from here to your module sandbox. ]]-- local p = {} p.main = function(frame) local args = frame.args local out = '' -- some code here return out end return p