MediaWiki:Gadget-CurIDLink.js

$(function{ 	var curid = mw.config.get('wgArticleId');	if (curid !== 0){		 var url = mw.config.get('wgServer') + '?curid=' + curid;		 mw.util.addPortletLink('p-tb', url, 'Link by ID', 't-curlink', 'Show link to this page by its ID');	} });