You will need a custom plugin for that, or you can make a feature request, the link code was hidden to prevent spammers from obtaining your link code (an idea I didnt really support at the time either). To be honest I think this should be changed and link code should be available by default in the core.