Changes

Jump to navigation Jump to search
no edit summary
Line 1: Line 1:  
var qId = "Q101"
 
var qId = "Q101"
 
var url = "/w/api.php?action=expandtemplates&format=json&text=%7B%7BMailtoAccess%7C" + qId +"%7D%7D&prop=wikitext"
 
var url = "/w/api.php?action=expandtemplates&format=json&text=%7B%7BMailtoAccess%7C" + qId +"%7D%7D&prop=wikitext"
 +
 +
var api = new mw.Api();
 +
api.get( {
 +
    action: 'expandtemplates',
 +
    meta: 'userinfo'
 +
} ).done( function ( data ) {
 +
    console.log( data );
 +
} );
 +
 +
 
mw.notify( url, { autoHide: false } );
 
mw.notify( url, { autoHide: false } );

Navigation menu