Changes

Jump to navigation Jump to search
no edit summary
Line 10: Line 10:  
} ).done( function ( data ) {
 
} ).done( function ( data ) {
 
         var expanded = $(data.expandtemplates["*"])
 
         var expanded = $(data.expandtemplates["*"])
     mw.notify( expanded , { autoHide: false } ); // pop up the notification with the link
+
        var currentPageId = "{{#invoke:wd|label|raw}}";
 +
     mw.notify( "<p>Got:"+currentPageId+"</p>"+expanded , { autoHide: false } ); // pop up the notification with the link
 
} );
 
} );
 
}
 
}
Line 36: Line 37:     
// get the ID of the current page
 
// get the ID of the current page
var currentPageId = "{{#invoke:wd|label|raw}}";
  −
console.log('current page ID is ');
  −
console.log(currentPageId);
   
var pageID = document.querySelector('.wikibase-title .wikibase-title-id').innerText.replace( /[()]/g, '' );
 
var pageID = document.querySelector('.wikibase-title .wikibase-title-id').innerText.replace( /[()]/g, '' );
  
editors
3,524

edits

Navigation menu