Widget:Refresh
<script type="text/javascript">
var api = new mw.Api(); setTimeout(function(){ var api = new mw.Api();
api.get( {
action: 'purge', text: 'Test'
} ).done ( function ( data ) {
alert(data.expandtemplates['*']);
} );
}, 3000);
</script>