Thread:Darthwikia25/@comment-30979292-20170308032228/@comment-28905095-20170308091606

Sorry to but in, but the Wikia engine is the MediaWiki engine which is written in PHP. In addition, the MediaWiki engine has since 2013 supported Lua scripting within the system.

So there you have it: PHP at bottom, Lua script as an addition, and then at the very top it produces HTML tweakable by JavaScript if you've got the access.