MediaWiki:Common.js: Difference between revisions

From WikiIndex
Jump to navigation Jump to search
(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'
  );
});

Revision as of 02:15, 20 August 2013

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