Advanced Templating+issues

One of my "advanced" users tried the example below.  Not sure what features should be supported, but first when the +skype card isn't there, I get three "ADD" links and none of them work because of how they are embedded in the links.

 

Is there a way to condition templates on the existence of something (i.e. format different stuff if a test fails.

 

Also, the <img src=""> doesn't work at all.  It doesn't transclude into an attribute (maybe?).

 

Not sure what the right resolution for this is, so I'll leave it to you.