Changes

Jump to navigation Jump to search
no edit summary
Line 1: Line 1:  
// License: GPL
 
// License: GPL
console.log( "popupmenu" )
+
 
 
var $title = $( '.wikibase-title' ),
 
var $title = $( '.wikibase-title' ),
 
qId = $title.find( '.wikibase-title-id' ).text().replace( /[()]/g, '' );
 
qId = $title.find( '.wikibase-title-id' ).text().replace( /[()]/g, '' );
Line 8: Line 8:  
api.get( {
 
api.get( {
 
     action: 'expandtemplates',
 
     action: 'expandtemplates',
     text: '{{Menu|qID='+qId+'}}'
+
     text: '{{PopupMenu|qID='+qId+'}}'
 
} ).done( function ( data ) {
 
} ).done( function ( data ) {
     var expanded = $(data.expandtemplates["*"])
+
     var expanded = data.expandtemplates["*"]
    console.log(expanded)
+
 
 
     mw.notify( expanded , { autoHide: false } );
 
     mw.notify( expanded , { autoHide: false } );
 
} );
 
} );

Navigation menu