MediaWiki:Common.js: Difference between revisions
Jump to navigation
Jump to search
Zhuyifei1999 (talk | contribs) (undo -- don't seem to work) |
Zhuyifei1999 (talk | contribs) (i18n) |
||
Line 5: | Line 5: | ||
'p-tb', | 'p-tb', | ||
location.href.replace( location.hash, '' ) + ( location.search ? '&' : '?' ) + 'action=info', | location.href.replace( location.hash, '' ) + ( location.search ? '&' : '?' ) + 'action=info', | ||
' | mw.message('pageinfo-toolboxlink').escaped(), | ||
't-pageinfo', | 't-pageinfo', | ||
'Display the current page information' | 'Display the current page information' | ||
); | ); | ||
}); | }); |
Revision as of 02:11, 20 August 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',
mw.message('pageinfo-toolboxlink').escaped(),
't-pageinfo',
'Display the current page information'
);
});