Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
//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