Board Thread:Lua Help/@comment-166269-20150217184425/@comment-24473195-20150220092022

Cqm wrote: Yes, lua is installed globally but I don't get the feeling it's used very much. There's not a lot of wikis with users familiar with code, even RuneScape Wiki (my home wiki) where there's dozens of coders there's only 4-5 of us who engage in developing a module. I suspect this is why dev wiki was nominated as the lua home wiki, as it's already the source of a number of widely used scripts.

That happens for several reasons. Firstly, Wikia didn't actively promote conversion or implementation of the modules, secondly, most users don't even know of its benefits or lack thereof, thirdly, the tools for developers are severely lacking. There aren't even any line numbers in the module page even though scribunto's error handling refers to them. If you look at wikipedia, their modules are used by millions of pages (http://en.wikipedia.org/wiki/Module:Navbox), so they are popular.

Cqm wrote:

I did indeed mean server-side doc support. Whilst categories do sort of work in modules at the moment, it's not something I'd ever recommend doing, and it's not something any JS implementation could reproduce. JS support is actually relatively simple to implement (this is just off the top of my head): if ( wgCanonicalNamespaceName == 'Module' && wgTitle.indexOf( '/doc' ) > -1 ) { ( new mw.Api ) .get( {           // params for calling action=parse go here            // you're just looking to get the current page's /doc subpage        } ) .done( function ( data ) {           // add error handling here in case it doesn't exist

// it won't actually be data, probably data.parse.something $( '#mw-content-text' ).prepend( data ); } ); }

Interesting, I'll have a look at it.