Board Thread:Code Review/@comment-33297154-20180823160741/@comment-33297154-20180823163411

I couldn't get it to work, was googling around and could not find any examples of its usage. var api = new mw.Api; api.get( {         action: 'expandtemplates',          text: template        } ).done ( function ( data ) {          i++;          output.text(data.expandtemplates['*']);          parse_wikitext_loop(data.expandtemplates['*']);        } ); is my current implimentation, and i tried this: var api = new mw.Api; api.get( {         action: 'parse',          text: template        } ).done ( function ( data ) {          i++;          output.text(data.parse['*']);          parse_wikitext_loop(data.parse['*']);        } ); but it didn't work. I might try it again after this post just incase i typed it wrong but that's the syntax i guessed by looking at the page.