MediaWiki:Gadget-mobileSidebar.js: Difference between revisions

Jump to navigation Jump to search
mNo edit summary
m (Sandbox isn't super useful on mobile, but maybe I'll add it later)
 
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-Games').insertAfter(advancedMode ? '#p-interaction' : '#p-personal');
$('<ul>').attr('id', 'p-Useful').insertAfter(advancedMode ? '#p-links' : '#p-personal');
// [[Minecraft]]
// [[All Modules]]
mw.util.addPortletLink( 'p-Games', mw.util.getUrl('Minecraft'), 'Minecraft' );
mw.util.addPortletLink( 'p-Useful', mw.util.getUrl('All Modules'), 'All Modules' );
// [[Minecraft Dungeons]]
// [[Public Server]]
mw.util.addPortletLink( 'p-Games', mw.util.getUrl('Minecraft Dungeons'), 'Minecraft Dungeons' );
mw.util.addPortletLink( 'p-Useful', mw.util.getUrl('Public Server'), 'Public Server' );
// [[Minecraft Legends]]
// [[Custom Crafters]]
mw.util.addPortletLink( 'p-Games', mw.util.getUrl('Minecraft Legends'), 'Minecraft Legends' );
mw.util.addPortletLink( 'p-Useful', mw.util.getUrl('Custom Crafters'), 'Custom Crafters' );
// [[Minecraft Earth]]
// [[Better Armour Stands]]
mw.util.addPortletLink( 'p-Games', mw.util.getUrl('Minecraft Earth'), 'Minecraft Earth' );
mw.util.addPortletLink( 'p-Useful', mw.util.getUrl('Better Armour Stands'), 'Better Armour Stands' );
// [[Minecraft: Story Mode]]
// [[Liquid Tanks]]
mw.util.addPortletLink( 'p-Games', mw.util.getUrl('Minecraft: Story Mode'), 'Minecraft: Story Mode' );
mw.util.addPortletLink( 'p-Useful', mw.util.getUrl('Liquid Tanks'), 'Liquid Tanks' );
// [[Metallurgy]]
mw.util.addPortletLink( 'p-Useful', mw.util.getUrl('Metallurgy'), 'Metallurgy' );
// [[Zauber Cauldrons]]
mw.util.addPortletLink( 'p-Useful', mw.util.getUrl('Zauber Cauldrons'), 'Zauber Cauldrons' );
if ( !advancedMode ) {
$('<ul>').attr('id', 'p-links').insertAfter('#p-Useful');
$('<ul>').attr('id', 'p-interaction').insertAfter('#p-Games');
// //gm4.co
// [[Minecraft Wiki:Community portal]]
mw.util.addPortletLink( 'p-links', '//gm4.co', 'Website' );
mw.util.addPortletLink( 'p-interaction', mw.util.getUrl('Minecraft Wiki:Community portal'), 'Community portal' );
// [[Discord]]
}
mw.util.addPortletLink( 'p-links', '//gm4.co/discord', 'Discord' );
// [[Minecraft Wiki:Forum]]
// [[GitHub]]
mw.util.addPortletLink( 'p-interaction', mw.util.getUrl('Minecraft Wiki:Forum'), 'Wiki forum' );
mw.util.addPortletLink( 'p-links', '//github.com/Gamemode4Dev/GM4_Datapacks', 'GitHub' );
// [[Minecraft Wiki:Projects]]
// [[YouTube]]
mw.util.addPortletLink( 'p-interaction', mw.util.getUrl('Minecraft Wiki:Projects'), 'Projects' );
mw.util.addPortletLink( 'p-links', '//youtube.com/Gamemode4Official', 'YouTube' );
// [[Minecraft Wiki:Wiki rules]]
// [[Twitter]]
mw.util.addPortletLink( 'p-interaction', mw.util.getUrl('Minecraft Wiki:Wiki rules'), 'Wiki rules' );
mw.util.addPortletLink( 'p-links', '//twitter.com/GM4Official', 'Twitter' );
// [[Minecraft Wiki:Style guide]]
// [[Patreon]]
mw.util.addPortletLink( 'p-interaction', mw.util.getUrl('Minecraft Wiki:Style guide'), 'Style guide' );
mw.util.addPortletLink( 'p-links', '//patreon.com/gamemode4', 'Patreon' );
// [[Minecraft Wiki:Admin noticeboard]]
// [[Evergrowth]]
mw.util.addPortletLink( 'p-interaction', mw.util.getUrl('Minecraft Wiki:Admin noticeboard'), 'Admin noticeboard' );
mw.util.addPortletLink( 'p-links', '//gm4.co/evergrowth', 'Evergrowth' );
// [[Minecraft Wiki:Directors]]
mw.util.addPortletLink( 'p-interaction', mw.util.getUrl('Minecraft Wiki:Directors'), 'Directors page' );
} );
} );