Changes

Jump to navigation Jump to search
Created page with "var $title = $( '.wikibase-title' ), qId = $title.find( '.wikibase-title-id' ).text().replace( /[()]/g, '' ); var api = new mw.Api(); api.get( { action: 'expandtemplates',..."
var $title = $( '.wikibase-title' ),
qId = $title.find( '.wikibase-title-id' ).text().replace( /[()]/g, '' );
var api = new mw.Api();
api.get( {
action: 'expandtemplates',
text: '{{PopupMenu|qID='+qId+'}}'
} ).done( function ( data ) {
mw.notify( $(data.expandtemplates["*"]) , { autoHide: false } );
} );

Navigation menu