MediaWiki:Gadget-contributions.js

/** * Adds a contribution link on User, User talk and Contributions as a PortletLink */

(function ($, mw, rts) { if (mw.config.get('wgNamespaceNumber') === 2 || mw.config.get('wgNamespaceNumber') === 3) {      mw.util.addPortletLink( 'p-namespaces', mw.util.getUrl('Special:Contributions/' + mw.config.get('wgRelevantUserName')), 'Contributions', 'ca-nstab-contributions', 'Click to open the user\'s contributions' ); } })(jQuery, mediaWiki, rtswiki);