MediaWiki:Common.js

/* Any JavaScript here will be loaded for all users on every page load. */ // Add a link to the actions menu to Article of page. // TODO: Should create a namespace ??

if ( wgCanonicalNamespace == 0 ) { addPortletLink( 'p-namespaces', wgArticlePath.replace( '$1', 'Article:' + encodeURIComponent(wgPageName) ), 'Article'); } else if ( wgCanonicalNamespace == 'Article' ) { addPortletLink( 'p-namespaces', wgArticlePath.replace( '$1', encodeURIComponent(wgPageName) ), 'Article'); }