MediaWiki:Common.js: Difference between revisions

From WikiIndex
Jump to navigation Jump to search
No edit summary
(undo -- don't seem to work)
Line 7: Line 7:
     'Page information',
     'Page information',
     't-pageinfo',
     't-pageinfo',
     ''
     'Display the current page information'
   );
   );
});
});

Revision as of 03:16, 3 July 2013

/* Any JavaScript here will be loaded for all users on every page load. */

$( document ).ready( function() {
  mw.util.addPortletLink(
    'p-tb',
    location.href.replace( location.hash, '' ) + ( location.search ? '&' : '?' ) + 'action=info',
    'Page information',
    't-pageinfo',
    'Display the current page information'
  );
});