MediaWiki:Common.js: Difference between revisions

Jump to navigation Jump to search
The page info link seem to appeared without the js
(i18n)
(The page info link seem to appeared without the js)
Line 1: Line 1:
/* Any JavaScript here will be loaded for all users on every page load. */
/* 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',
    mw.message('pageinfo-toolboxlink').escaped(),
    't-pageinfo',
    'Display the current page information'
  );
});
checkuser, Administrators
2,635

edits

Navigation menu