User:Legoktm/quicklinks.js

//Subpages Link $(function { //Check if the config is defined  if (typeof(allQuicklinks) == 'undefined') {    allQuicklinks = {}  }  if (typeof(allQuicklinks.quicklinksList) == 'undefined') {      allQuicklinks.quicklinksList = [ 'Subpages' ];  }  if (typeof(allQuicklinks.subPage) == 'undefined') {      allQuicklinks.subPage = 'User:' + wgUserName + '/Subpages';  }  //Add the links  for (var i=0; i<allQuicklinks.quicklinksList.length; i++) {    var stat = allQuicklinks.quicklinksList[i];    addPortletLink( "p-personal", //target tab - personal links mw.config.get('wgServer') + mw.config.get('wgScript') + "?title=" + allQuicklinks.subPage, //link URL stat, //link text "pt-status-" + stat, //id of new button "All of my" + stat + "!", //hover text "", //???     document.getElementById("pt-logout")); //add before logout button  }

}); //End Subpages Link