Changes

Jump to navigation Jump to search
no edit summary
Line 10: Line 10:  
};  
 
};  
    +
mw.hook( 'wikibase.entityPage.entityLoaded' ).add( function ( entity ) {
 +
      'use strict';
 +
      // Your code goes here
 +
      console.log( entity );
 +
  } );
 
// check if we are on a page of a loaded Entity
 
// check if we are on a page of a loaded Entity
 
if ( typeof mw.config.values.wbEntity !=  "undefined" ) {
 
if ( typeof mw.config.values.wbEntity !=  "undefined" ) {

Navigation menu