MediaWiki:Common.js: Difference between revisions
Jump to navigation
Jump to search
(Thanks, https://www.mediawiki.org/wiki/Topic:Ptixd7447tagjfa5?) |
(No difference)
|
Revision as of 21:01, 18 September 2018
/* Any JavaScript here will be loaded for all users on every page load. */
var conf = mw.config.get(['wgPageName']);
// Add a link to the actions menu to Special:Log for this page.
mw.loader.using( 'mediawiki.util', function () {
mw.util.addPortletLink(
'p-cactions',
mw.util.getUrl( 'Special:Translate', { page : conf.wgPageName } ),
'Translate'
);
} );