MediaWiki:Common.js: Difference between revisions
no edit summary
No edit summary |
No edit summary |
||
Line 1:
var conf = mw.config.get([
'wgCanonicalNamespace',
'wgPageName',
'wgCurRevisionId'
]);
// Add a link to the actions menu to Special:Log and Special:Report for this page.
// Only do the following not in the Special: namespace.
if ( conf.wgCanonicalNamespace !== 'Special') {
mw.loader.using( 'mediawiki.util', function () {
mw.util.addPortletLink(
Line 17 ⟶ 18:
'Report a problem'
)
);
} );
}
|