User:Tommyang/Script/Welcome.js

jQuery( function( $ ) {   if (wgNamespaceNumber != 2 && wgNamespaceNumber != 3)  // User or User talk        return;    var user = wgTitle.split("/")[0];    var url = wgScript + "?title=User talk:" + encodeURIComponent(user) + "&action=edit&preload=User_talk:Tommyang/Welcome&summary=Welcome to Wikipedia!";    mw.util.addPortletLink("p-tb", "?title=User talk:" + encodeURIComponent(user) + "&action=edit&preload=User_talk:Tommyang/Welcome&summary=Welcome to Wikipedia!" , "Welcome", "t-iwel", "Welcoming new users", "a", "#t-print"); } );