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');▼
mw.util.addPortletLink(▼
'p-cactions',▼
mw.util.getUrl('Special:PrefixIndex/' + conf.wgPageName),▼
// 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');
▲ mw.util.addPortletLink(
▲ 'p-cactions',
▲ mw.util.getUrl('Special:PrefixIndex/' + conf.wgPageName),
}
▲ // add extension-enabled report for the latest revision
▲ mw.util.addPortletLink(
▲ 'p-cactions',
▲ mw.util.getUrl('Special:Report/' + mw.config.get('wgCurRevisionId')),
});
}
|