Board Thread:Lua Help/@comment-27399098-20160927224055/@comment-2200849-20160927233714

You can include Lua modules in a wikitext template through  and you can make a Lua module generate wikitext, too.

See also Lua templating.