MediaWiki:Gadget-Purge.js: Difference between revisions
Jump to navigation
Jump to search
Want an adless experience? Log in or Create an account.
m (moved MediaWiki:Purge.js to MediaWiki:Gadget-Purge.js) |
mNo edit summary |
||
Line 3: | Line 3: | ||
// adds a "purge" tab (after "watch") | // adds a "purge" tab (after "watch") | ||
// -------------------------------------------------------- | // -------------------------------------------------------- | ||
$( function() { | |||
if ( | if ( !$( '#ca-purge' ).length && mw.config.get( 'wgIsArticle' ) ) { | ||
mw.util.addPortletLink( | |||
'p-cactions', | |||
mw.util.wikiGetlink( mw.config.get( 'wgPageName' ) ) + '?action=purge', | |||
mw.config.get( 'skin' ) == 'vector' ? 'Purge' : '*', | |||
'ca-purge', | |||
'Purge the server cache of this page', | |||
'*' | |||
); | |||
} | } | ||
}); | }); | ||
// | // |
Revision as of 01:28, October 24, 2011
// -------------------------------------------------------- // addPurge // adds a "purge" tab (after "watch") // -------------------------------------------------------- $( function() { if ( !$( '#ca-purge' ).length && mw.config.get( 'wgIsArticle' ) ) { mw.util.addPortletLink( 'p-cactions', mw.util.wikiGetlink( mw.config.get( 'wgPageName' ) ) + '?action=purge', mw.config.get( 'skin' ) == 'vector' ? 'Purge' : '*', 'ca-purge', 'Purge the server cache of this page', '*' ); } }); //