User:Nigos/scripts/RandomRootpage.js: Difference between revisions

Content deleted Content added
m Xeno moved page User:Anchorvale/scripts/RandomRootpage.js to User:Nigos/scripts/RandomRootpage.js: Automatically moved page while renaming the user "Anchorvale" to "Nigos"
 
(2 intermediate revisions by one other user not shown)
Line 1:
/* This script is used to add a link to [[Special:RandomRootpage]], or to a stub article.
*/
mw.loader.using( [ 'mediawiki.util' ], function () {
mw.util.addPortletLink(
'p-navigation',
mw.util.getUrl( 'Special:RandomRootpage' ),
'Random rootpage',
'n-randomrootpage',
'Load a random rootpage',
'i',
'#n-sitesupport'
);
} );
/* [[Category:Wikipedia scripts]]
*/