Board Thread:Lua Help/@comment-27393108-20160204065606

Scope in Lua still confuses me. So here are a bunch of questions:


 * Are global variables shared between instances of a Lua script?
 * Are there even different instances of a Lua script or does the wikitext parser simply keep the script open until the page is rendered?
 * Would it be possible to create a template that stores data in a global variable and access that global variable from another template within the same page? 