MediaWiki:Gadget-contributions.js: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
No edit summary Tag: Reverted |
No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
"use strict"; |
|||
/** |
/** |
||
* Adds a contribution link on User, User talk and Contributions as a PortletLink |
* Adds a contribution link on User, User talk and Contributions as a PortletLink |
||
Line 5: | Line 7: | ||
if (mw.config.get('wgNamespaceNumber') === 2 || mw.config.get('wgNamespaceNumber') === 3) { |
if (mw.config.get('wgNamespaceNumber') === 2 || mw.config.get('wgNamespaceNumber') === 3) { |
||
$(function () { |
|||
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'); |
|||
mw.mw.util.addPortletLink( |
|||
⚫ | |||
'p-namespaces', |
|||
mw.mw.util.getUrl('Special:Contributions/' + mw.config.get('wgRelevantUserName')), |
|||
'Contributions', |
|||
'ca-nstab-contributions', |
|||
'Click to open the user\'s contributions' |
|||
); |
|||
⚫ | |||
} |
} |
Latest revision as of 12:06, 20 October 2024
"use strict";
/**
* Adds a contribution link on User, User talk and Contributions as a PortletLink
* @author Jr_Mime
*/
if (mw.config.get('wgNamespaceNumber') === 2 || mw.config.get('wgNamespaceNumber') === 3) {
$(function () {
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');
});
}