Try using this tags in link.html as follow:
<%if query%>
What you want to appear in search results.
<%endif%>
<%ifnot query%>
What you don't want to appear in search results.
<%endif%>
Regards,
Nuno Duque
--------------------
Macau Search Engine
inmacau.com