Board Thread:Lua Help/@comment-4405550-20160124224015/@comment-4405550-20160128161824

Well here is my initial outline: scribunto-console on GitHub.

It's not much, and I am planning on making some structural changes (see ToDo on project page). But I have some big ideas.

For example, I could (in theory) create a "debug frame" that allows developers to test their module in whatever context they want. The node script would pull the wikitext from the desired page and extract enough information to create a fake frame, arguments, and title object (also replace any #invoke calls if they are using the current module). Then evaluate the script using these proxy objects before using the MediaWiki API to parse the resulting WikiText in the target page's context. Boom! A full preview mode for Lua modules on any page you want!

Have node run a simple server to handle your requests and a userscript to add a special preview button to module pages. Then just throw the result into wikia's little preview popup and you know exactly how your page is going to look before you submit it.

That's just one idea I have for the project. What do you think?