Jump to content

User:Music1201/QuickLinks.js: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
adding
Maintenance: mw:RL/MGU / mw:RL/JD - mw.util.wikiGetlink is deprecated
 
(26 intermediate revisions by 2 users not shown)
Line 1: Line 1:
/* This script is used to add a link to my personal CSD log
/* This script will add items to the toolbar for quick access to commonly used things */
*/
$( document ).ready( function() {
mw.util.addPortletLink(
'p-personal',
mw.util.wikiGetlink( 'User:Music1201/CSD log' ),
'CSD log',
'pt-pendingchanges',
'View CSD log',
null,
'#pt-preferences'
);
});

/* Adds Articles for deletion link in toolbar
*/
$( document ).ready( function() {
mw.util.addPortletLink(
'p-personal',
mw.util.wikiGetlink( 'Wikipedia:Articles for deletion/Today' ),
'Articles for deletion',
'pt-pendingchanges',
'Review revisions protected with Pending changes',
null,
'#pt-preferences'
);
});


$( document ).ready( function() {
/* $( document ).ready( function() {
mw.util.addPortletLink(
mw.util.addPortletLink(
'p-personal',
'p-personal',
mw.util.wikiGetlink( 'Special:PendingChanges' ),
mw.util.getUrl( 'Wikipedia:Dashboard' ),
'Pending changes',
'Dashboard',
'pt-pendingchanges',
'pt-dashboard',
'View the Wikipedia Dashboard ',
'Review revisions protected with Pending changes',
null,
null,
'#pt-preferences'
'#pt-preferences'
);
);
});
}); */
mw.loader.using( 'mediawiki.util' ).done( function() {
mw.util.addPortletLink('p-navigation', mw.config.get( 'wgServer' ) + '/wiki/Wikipedia:Village pump/Proposals', "Village pump");
mw.util.addPortletLink('p-navigation', mw.config.get( 'wgServer' ) + '/wiki/Special:MyPage/CSD log', "CSD log");
mw.util.addPortletLink('p-navigation', mw.config.get( 'wgServer' ) + '/wiki/Wikipedia:Requested moves#Backlog', "Requested moves");
mw.util.addPortletLink('p-navigation', mw.config.get( 'wgServer' ) + '/wiki/Wikipedia:Articles for deletion/Today', "Articles for deletion");
mw.util.addPortletLink('p-navigation', mw.config.get( 'wgServer' ) + '/wiki/Special:RandomInCategory/Pending AfC submissions', "Random AFC Draft");
mw.util.addPortletLink('p-navigation', mw.config.get( 'wgServer' ) + '/wiki/Special:PendingChanges', "Pending changes");
mw.util.addPortletLink('p-navigation', mw.config.get( 'wgServer' ) + '/wiki/Special:NewPagesFeed', "New pages feed");
mw.util.addPortletLink('p-navigation', mw.config.get( 'wgServer' ) + '/wiki/Wikipedia:Articles for creation/Redirects', "Redirects for creation");
mw.util.addPortletLink('p-navigation', mw.config.get( 'wgServer' ) + '/wiki/User:Music1201/Things to do', "Things to do");
mw.util.addPortletLink('p-navigation', 'http://ticket.wikimedia.org', "OTRS");
} );

Latest revision as of 17:28, 25 October 2017

/* This script will add items to the toolbar for quick access to commonly used things */

/* $( document ).ready( function() {
  mw.util.addPortletLink(
    'p-personal',
    mw.util.getUrl( 'Wikipedia:Dashboard' ),
    'Dashboard',
    'pt-dashboard',
    'View the Wikipedia Dashboard ',
    null,
    '#pt-preferences'
  );
}); */
mw.loader.using( 'mediawiki.util' ).done( function() {
	mw.util.addPortletLink('p-navigation', mw.config.get( 'wgServer' ) + '/wiki/Wikipedia:Village pump/Proposals', "Village pump");
	mw.util.addPortletLink('p-navigation', mw.config.get( 'wgServer' ) + '/wiki/Special:MyPage/CSD log', "CSD log");
	mw.util.addPortletLink('p-navigation', mw.config.get( 'wgServer' ) + '/wiki/Wikipedia:Requested moves#Backlog', "Requested moves");
	mw.util.addPortletLink('p-navigation', mw.config.get( 'wgServer' ) + '/wiki/Wikipedia:Articles for deletion/Today', "Articles for deletion");
	mw.util.addPortletLink('p-navigation', mw.config.get( 'wgServer' ) + '/wiki/Special:RandomInCategory/Pending AfC submissions', "Random AFC Draft");
	mw.util.addPortletLink('p-navigation', mw.config.get( 'wgServer' ) + '/wiki/Special:PendingChanges', "Pending changes");
	mw.util.addPortletLink('p-navigation', mw.config.get( 'wgServer' ) + '/wiki/Special:NewPagesFeed', "New pages feed");
	mw.util.addPortletLink('p-navigation', mw.config.get( 'wgServer' ) + '/wiki/Wikipedia:Articles for creation/Redirects', "Redirects for creation");
	mw.util.addPortletLink('p-navigation', mw.config.get( 'wgServer' ) + '/wiki/User:Music1201/Things to do', "Things to do");
	mw.util.addPortletLink('p-navigation', 'http://ticket.wikimedia.org', "OTRS");
} );