Module:Sandbox: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 8: | Line 8: | ||
---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ||
function | p = {} | ||
function p.loop(frame) | |||
local out = {} | |||
for idx = 1, 5 do | |||
table.insert(out, idx) | |||
end | |||
return table.concat(out, "<br>") | |||
end | end | ||
return p |
Revision as of 19:36, 2 October 2022
----------------------------------------------------------------------------------------------------
--
-- Module:Sandbox
--
-- Here you can set anything you want in this sandbox, as long as it uses the language Lua.
-- Do not forget to add {{#invoke:Sandbox|<function name>}} in your template.
-- [[Category:Sandbox]]
----------------------------------------------------------------------------------------------------
p = {}
function p.loop(frame)
local out = {}
for idx = 1, 5 do
table.insert(out, idx)
end
return table.concat(out, "<br>")
end
return p