MediaWiki:Gadget-MetaVars.js

$(function {  var varslink = '/wiki/Special:MetaVarsOnPage/' + mw.config.get('wgPageName');  mw.util.addPortletLink('p-tb', varslink, 'MetaTemplate Variables', 't-metavars', 'MetaTemplate variables saved on page'); });