Difference between revisions of "Module:Sandbox/Ahecht/sandbox"
< Module:Sandbox | Ahecht
Jump to navigation
Jump to search
blackwiki>Ahecht (test) |
blackwiki>Ahecht (test) |
||
| Line 12: | Line 12: | ||
comma = '' | comma = '' | ||
for k, v in pairs(args) do | for k, v in pairs(args) do | ||
| − | output = output .. comma .. | + | output = output .. comma .. v |
comma = ', ' | comma = ', ' | ||
end | end | ||
Revision as of 16:14, 18 July 2017
Documentation for this module may be created at Module:Sandbox/Ahecht/sandbox/doc
local p = {}
local function _main(args)
args[1] = 'CHANGED'
return true
end
function p.main(frame)
args = frame.args
_args = _main(args)
output = '{'
comma = ''
for k, v in pairs(args) do
output = output .. comma .. v
comma = ', '
end
return output .. '}'
end
return p