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

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.

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 ); } ); } I managed to create a simple script[http:// http://duolingo.wikia.com/wiki/MediaWiki:Moduledoc.js] following your hint. With the exception of categories, everything else seems to work.