Difference between revisions of "MediaWiki:Access.js"
Jump to navigation
Jump to search
Line 7: | Line 7: | ||
} ).done( function ( data ) { | } ).done( function ( data ) { | ||
mw.notify( data.expandtemplates ); | mw.notify( data.expandtemplates ); | ||
+ | console.log(data.expandtemplates.0); | ||
} ); | } ); | ||
mw.notify( "hello", { autoHide: false } ); | mw.notify( "hello", { autoHide: false } ); |
Revision as of 23:53, 29 March 2019
var qId = "Q101"
var api = new mw.Api();
api.get( {
action: 'expandtemplates',
text: '{{MailtoAccess|Q101}}'
} ).done( function ( data ) {
mw.notify( data.expandtemplates );
console.log(data.expandtemplates.0);
} );
mw.notify( "hello", { autoHide: false } );