Board Thread:Lua Help/@comment-24473195-20140813090251/@comment-24473195-20140813100925

Cqm wrote: Frame is a bit harder to fake. You can fake the args table, but you can fake any of the methods, e.g. preprocess, getParent, etc.

To fake the args table you do something like: local myFrame = { args = { 'foo', 'bar', 'baz' } } =p.foo( myFrame )

>> 'foo' Thanks, this seems to work properly, the only problem is that if the string is very big it overlaps the page. Probably something for the developers to tackle. Also it doesn't seem to recognize the print function, but it works with mw.log ("aaa").

Lua error at line 26: attempt to call field 'print' (a nil value).