On November 6th, 2024, the 9,000th article was added to the SuccuWiki!
MediaWiki:Gadget-purgetab.js: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
| Line 1: | Line 1: | ||
/** | /** | ||
* | * Action link: Purge (Action menu) | ||
* | * | ||
* @source: http://www.mediawiki.org/wiki/Snippets/Purge_action | |||
* @rev: 5 | |||
* @source www.mediawiki.org/wiki/Snippets/Purge_action | |||
* @ | |||
*/ | */ | ||
$( function () { | $( function () { | ||
| Line 11: | Line 9: | ||
mw.util.addPortletLink( | mw.util.addPortletLink( | ||
'p-cactions', | 'p-cactions', | ||
mw.util.getUrl( | mw.util.getUrl( mw.config.get( 'wgPageName' ) ) + '?action=purge', | ||
mw.config.get( 'skin' ) | mw.config.get( 'skin' ) == 'vector' ? 'Purge' : '*', | ||
'ca-purge', | 'ca-purge', | ||
'Purge the server cache of this page', | 'Purge the server cache of this page', | ||
| Line 18: | Line 16: | ||
); | ); | ||
} | } | ||
} ); | }); | ||
Latest revision as of 20:24, 7 November 2015
/**
* Action link: Purge (Action menu)
*
* @source: http://www.mediawiki.org/wiki/Snippets/Purge_action
* @rev: 5
*/
$( function () {
if ( !$( '#ca-purge' ).length && mw.config.get( 'wgIsArticle' ) ) {
mw.util.addPortletLink(
'p-cactions',
mw.util.getUrl( mw.config.get( 'wgPageName' ) ) + '?action=purge',
mw.config.get( 'skin' ) == 'vector' ? 'Purge' : '*',
'ca-purge',
'Purge the server cache of this page',
'*'
);
}
});