MediaWiki:Gadget-mobileSidebar.js: Difference between revisions

Jump to navigation Jump to search
m
no edit summary
(Copy template, saving to see what it looks like)
 
mNo edit summary
Line 12: Line 12:
$('a.menu__item--random').attr('href', mw.util.getUrl('Special:RandomInCategory/All_Modules'));
$('a.menu__item--random').attr('href', mw.util.getUrl('Special:RandomInCategory/All_Modules'));
$('<ul>').attr('id', 'p-Useful').insertAfter(advancedMode ? '#p-interaction' : '#p-personal');
$('<ul>').attr('id', 'p-Games').insertAfter(advancedMode ? '#p-interaction' : '#p-personal');
// [[Minecraft]]
// [[Minecraft]]
mw.util.addPortletLink( 'p-Games', mw.util.getUrl('Minecraft'), 'Minecraft' );
mw.util.addPortletLink( 'p-Games', mw.util.getUrl('Minecraft'), 'Minecraft' );
Line 25: Line 25:
if ( !advancedMode ) {
if ( !advancedMode ) {
$('<ul>').attr('id', 'p-interaction').insertAfter('#p-Useful');
$('<ul>').attr('id', 'p-interaction').insertAfter('#p-Games');
// [[Minecraft Wiki:Community portal]]
// [[Minecraft Wiki:Community portal]]
mw.util.addPortletLink( 'p-interaction', mw.util.getUrl('Minecraft Wiki:Community portal'), 'Community portal' );
mw.util.addPortletLink( 'p-interaction', mw.util.getUrl('Minecraft Wiki:Community portal'), 'Community portal' );
Bureaucrats, Check users, emailconfirmed, Interface administrators, staff, Administrators, translation-admin, Widget editors
1,655

edits

Navigation menu