Forum:Enabling Lua

And so, descend the Lua gods, from their perch in Programming Heaven in which they oversee, the computer programming world...

Wikia offers the Lua module to be enabled upon request. This could essentially revolutionize templates all across Wikia, or at least on wikis that enable it.

Before, coding complex templates was tedious and hard work. The supposedly simple Wiki-markup became a complex computer programming language when it came to templates.

Lua in MediaWiki is possible through the Scribunto extension, which Wikia has finally finished porting. Lua was designed with logical operations in mind, so it looks much more streamlined and easier to read.

Lua coding is stored in the Module namespace, and can be called into the template namespace via the  function.

"But wait! I don't know Lua..." So what if you don't? There are numerous templates on Wikipedia that use Lua already, such as Template:Convert, which uses Lua to convert values. The coding for the template in Lua is a lot cleaner and more streamlined than if it were done in Wikitext, which would look like spaghetti code and give everyone a headache just looking at it! Plus, Lua supposedly renders much faster. Some of our pages just take too darn long to save or purge, because of the spaghetti-code templates on it!

The extension can be enabled via Special:Contact; an administrator can just ask for the extension to be enabled and Wikia Staff will see to it.

So, The Sims Wiki, should we enable the Lua extension for easier to make templates? --k6ka (talk &#124; contribs) 21:18, August 6, 2014 (UTC)