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