Jump to content

Module:Sandbox/Wnt

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Wnt (talk | contribs) at 00:35, 16 March 2013 (to be silly about it:)). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
local p={}
function p.test()
   local a={}
   a[1]="a"
   a[2]="b"
   a[3]="c"
   return unpack({unpack({unpack(a)})})
end
function p.main(frame)
   local args=frame.args
   local parent=frame:getParent()
   local pargs=parent.args
   local target = frame.args[1] or frame.args.target;
   x,y,z=p.test()
   output=tostring(x) .. tostring(y) ..tostring(z)
   return output
end
 
return p