Board Thread:Support Requests - Getting Technical/@comment-37184454-20200531000619/@comment-9605025-20200531051537

I have never used it but I believe Scribuntu does have a method for expanding templates. Take a look at the library documentation.

Either way, I am curious as to why you want a LUA-based solution when you already have a working system with Labeled Section Transclusion. What is the benefit over the current solution?