Board Thread:Support Requests - Getting Technical/@comment-27971057-20160218025046/@comment-27393108-20160403201917

That's not a JavaScript problem. I'm not aware of a way to build parameterized templates with conventional template syntax. You would have to use Lua for that...

Having said that it's hypothetically possible... I would recommend against it. It puts a lot of strain on the server, prevents caching and as a consequence reduces load times quite drastically. This kind of thing only makes sense with a dedicated server component. That means you'd have to write a MediaWiki extension in PHP and - this is the trickier part - get it accepted by Wikia.

This might also be doable with Semantic MediaWiki but you'd have to ask somebody else about that.