Thread:User talk:CodeCat/Lua and templates/reply

No, it's treated as plain wikitext. If you want to use templates as part of "postprocessing" the module, the module has to transclude them itself before returning the output. My own experience with this though is that it's still better to do all the formatting in Lua as well. Lua has tables, which templates lack.