MediaWiki:Common.js

/* */ /* Any JavaScript here will be loaded for all users on every page load. */ $(function( $ ) {

/** * Adds a new button to the edit toolbar */ if ( mw.toolbar ) { mw.toolbar.addButton( {       imageFile: 'http://wiki.gamergate.me/images/5/58/Cite.png',        speedTip: 'Insert a citation',        tagOpen: ,        sampleText: ,        imageId: ''    } ); }

/** * Add "Purge" content action link. * * Dependencies: mediawiki.util * * @source www.mediawiki.org/wiki/Snippets/Purge_action * @revision 2015-02-10 */ 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',        '*'    ); }

} ); /* */