MediaWiki:Common.js: Difference between revisions
Jump to navigation
Jump to search
Zhuyifei1999 (talk | contribs) (Import -- why don't we have this link?) |
Zhuyifei1999 (talk | contribs) No edit summary |
||
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', | ||
' | '{{int:pageinfo-toolboxlink}}', | ||
' | 'pageinfo-toolboxlink', | ||
' | '' | ||
); | ); | ||
}); | }); |
Revision as of 03:11, 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',
'{{int:pageinfo-toolboxlink}}',
'pageinfo-toolboxlink',
''
);
});