MediaWiki:Common.js: Difference between revisions

subpages only appear in user ns
No edit summary
(subpages only appear in user ns)
 
(3 intermediate revisions by the same user not shown)
Line 17:
'p-cactions',
mw.util.getUrl('Special:Log/' + conf.wgPageName),
'Logs',);
 
'',
// only do the 'Logsfollowing forif thisin page');user namespace
if (conf.wgCanonicalNamespace == 'User') {
 
// add user rights for this page
mw.util.addPortletLink(
'p-cactions',
mw.util.getUrl('Special:UserRights/' + conf.wgPageName),
'User rights');
 
// add list of subpages for this page
mw.util.addPortletLink(
'p-cactions',
mw.util.getUrl('Special:PrefixIndex/' + conf.wgPageName),
'Subpages',);
}
 
// add extension-enabled report for the latest revision
Line 25 ⟶ 39:
'p-cactions',
mw.util.getUrl('Special:Report/' + mw.config.get('wgCurRevisionId')),
'Report a problem',
'',
'Report a problem');
});