MediaWiki:Common.js: Difference between revisions

subpages only appear in user ns
No edit summary
(subpages only appear in user ns)
 
(One intermediate revision by the same user not shown)
Line 17:
'p-cactions',
mw.util.getUrl('Special:Log/' + conf.wgPageName),
'Logs',);
'Logs for this page');
 
// add extension-enabled report for the latest revision
mw.util.addPortletLink(
'p-cactions',
mw.util.getUrl('Special:Report/' + mw.config.get('wgCurRevisionId')),
'Report a problem',
'Report a problem');
 
// add list of subpages
mw.util.addPortletLink(
'p-cactions',
mw.util.getUrl('Special:PrefixIndex/' + conf.wgPageName),
'Subpages',
'Subpages');
 
// only do the following if in 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',
'User rights');
 
// add list of 'Logssubpages for this page');
mw.util.addPortletLink(
'p-cactions',
mw.util.getUrl('Special:PrefixIndex/' + conf.wgPageName),
'Report a problemSubpages');
}
 
// add extension-enabled report for the latest revision
mw.util.addPortletLink(
'p-cactions',
mw.util.getUrl('Special:Report/' + mw.config.get('wgCurRevisionId')),
'Report a problem',);
});
}