MediaWiki:Common.js: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
(2 intermediate revisions by the same user not shown) | |
(No difference)
|
Latest revision as of 09:33, 23 November 2024
/* Any JavaScript here will be loaded for all users on every page load. */
$( function () {
if ( $( '#ca-purge' ).length || !mw.config.get( 'wgIsArticle' ) ) return;
mw.util.addPortletLink(
'p-cactions',
mw.util.getUrl( null, { action: 'purge' } ),
"Purge",
'ca-purge',
'Purge the server cache of this page',
'*'
);
});