MediaWiki:Gadget-Purge.js: Difference between revisions
Jump to navigation
Jump to search
Want an adless experience? Log in or Create an account.
mNo edit summary |
m (update deprecated wg variables to mw.config) |
||
Line 7: | Line 7: | ||
mw.util.addPortletLink( | mw.util.addPortletLink( | ||
'p-cactions', | 'p-cactions', | ||
mw.util. | mw.util.getUrl( mw.config.get( 'wgPageName' ) ) + '?action=purge', | ||
mw.config.get( 'skin' ) == 'vector' ? 'Purge' : '*', | mw.config.get( 'skin' ) == 'vector' ? 'Purge' : '*', | ||
'ca-purge', | 'ca-purge', |
Revision as of 04:53, March 19, 2017
// -------------------------------------------------------- // addPurge // adds a "purge" tab (after "watch") // -------------------------------------------------------- $( 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', '*' ); } }); //