User:Zhuyifei1999/common.js: Difference between revisions

From WikiIndex
Jump to navigation Jump to search
(gadgetized)
(Add)
Line 1: Line 1:
 
$( 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'
  );
});

Revision as of 10:58, 29 June 2013

$( 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'
  );
});