User:Nadeem351/common.js

( function ( mw, $ ) {	var entityId = mw.config.get( 'wgArticleId' );	if ( mw.config.exists( 'wgGlobalGroups' ) ) {		// CentralNotice has registered this variable...		console.log('exists');	}

if ( !entityId ) { //return; console.log('here1'); }	// Add portlet link for item mw.util.addPortletLink(		'p-tb',		'//tools.wmflabs.org/reasonator/?' + $.param( { q: entityId, lang: mw.config.get( 'wgUserLanguage' ) } ),		'Reasonator',		't-reasonator',		'This Wikidata item in reasonator'	); }( mediaWiki, jQuery ) );