Difference between revisions of "Module:Sandbox/Ahecht/sandbox"
< Module:Sandbox | Ahecht
Jump to navigation
Jump to search
blackwiki>Ahecht (test) |
blackwiki>Ahecht (test) |
||
| Line 7: | Line 7: | ||
function p.main(frame) | function p.main(frame) | ||
| − | args = frame.args | + | -- args = frame.args |
| + | args = {'a', 'b', 'c'} | ||
_args = _main(args) | _args = _main(args) | ||
output = '{' | output = '{' | ||
Revision as of 16:19, 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 = {'a', 'b', 'c'}
_args = _main(args)
output = '{'
comma = ''
for k, v in pairs(args) do
output = output .. comma .. k .. '=' .. v .. '(' .. args[k] .. ')'
comma = ', '
end
return output .. '}'
end
return p