Thread:Extension talk:Scribunto/Framework for interactive applications on-wiki/reply

Considering that Scribunto runs during the page parse, it's very unlikely that Scribunto is the right place for that sort of thing.

You'd probably want to look into Gadgets 2.0, which would enable gadgets shared across wikis, and/or Flow which intends to somehow replace those sorts of templates with "custom workflows" (before you ask, I don't know anything about the details on that).