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
m (1 revision) |
mNo edit summary |
||
| Line 1: | Line 1: | ||
/** | /** | ||
* | * Add "Purge" content action link. | ||
* | * | ||
* @source | * Dependencies: mediawiki.util | ||
* @ | * | ||
* @source www.mediawiki.org/wiki/Snippets/Purge_action | |||
* @revision 2015-02-10 | |||
*/ | */ | ||
$( function() { | $( function () { | ||
if ( !$( '#ca-purge' ).length && mw.config.get( 'wgIsArticle' ) ) { | if ( !$( '#ca-purge' ).length && mw.config.get( 'wgIsArticle' ) ) { | ||
mw.util.addPortletLink( | mw.util.addPortletLink( | ||
'p-cactions', | 'p-cactions', | ||
mw.util. | mw.util.getUrl( null, { action: 'purge' } ), | ||
mw.config.get( 'skin' ) == 'vector' ? 'Purge' : '*', | 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 16: | Line 18: | ||
); | ); | ||
} | } | ||
}); | } ); | ||
Revision as of 18:37, 7 November 2015
/**
* Add "Purge" content action link.
*
* Dependencies: mediawiki.util
*
* @source www.mediawiki.org/wiki/Snippets/Purge_action
* @revision 2015-02-10
*/
$( function () {
if ( !$( '#ca-purge' ).length && mw.config.get( 'wgIsArticle' ) ) {
mw.util.addPortletLink(
'p-cactions',
mw.util.getUrl( null, { action: 'purge' } ),
mw.config.get( 'skin' ) === 'vector' ? 'Purge' : '*',
'ca-purge',
'Purge the server cache of this page',
'*'
);
}
} );