Board Thread:Lua Help/@comment-1466854-20140922214311/@comment-11733175-20140928183451

var api = new mw.Api; api .get( {       action: 'parse',        page: wgPageName + '/doc'    } ) .done( function ( data ) {       if ( data.error ) {            console.log( data.error );        } else {            $( '#mw-content-text' ).before( data.parse.text['*'] );        }    } ); To achieve the ajax'd doc I mentioned above you can use this to insert the documentation. However, there's an error cause by trying to submit something that isn't lua in the module ns (it doesn't know the difference between a module and it's documentation) which can be disabled with: var tparts = wgTitle.split( '/' );

if ( ['edit', 'submit'].indexOf( wgAction ) === -1 ) { return; }

if ( tparts.length > 2 && tparts[tparts.length - 1] === 'doc' ) { $( '#scribunto_ignore_errors' ).prop( 'checked', true ); } Obviously this isn't complete, and could use some tweaks before being a fully fledged script, but it's the basics of how it could work.