Board Thread:Lua Help/@comment-166269-20150217184425/@comment-24473195-20150301102714

Cqm wrote: @Dinoguy afaik it's not limited to oasis, I assume there's a patch to make it work in both of wikia's 'supported' skins, but it would have worked in monobook already with no major alterations. I believe it's a just form that POSTs the input to the server for it to be compiled into lua with some js involved.

As for using it, it's pretty simple although it's much harder when you're working with `frame` -- = causes the passed expression to be evaluated and output to the console >> ='foo' foo

>> =p.bar -- where p is the returned table created by the current module and bar is a key within that module -- lets assume it simply returns 'bar' for the purposes of this bar

>> =mw.ext.ParserFunctions.expr('1 + 1') -- doesn't work yet, but this is the first global method I could think of to show how it works 2

>> localFrame = {args={1, 2, 3}} >> =p.quux(localFrame) -- this is the only key you can fake in `frame` afaik, the methods are a probably php callbacks -- which I have no desire to try and re-implement in lua for the sake of debugging -- for the purposes of this, lets imagine it simply joins each key -- this method contains a call to `mw.log` which outputs the type of the first value in `frame.args` number 123

You can also emulate the child frame. Which is useful for debugging how it'll work in actual calls to templates.