This is on the Code Review site. Someone posted their code for building a SQL Connection String.
My answer points them to the Microsoft class whose purpose is to do this exactly:
Prompting user for connection parameters to SQL Server
Then I get a couple of comments saying that "link-only answers are off-topic", which as far as I can see doesn't make sense (maybe he means inappropriate?), and it wasn't just a link - I gave a reason, advice, and signposted to the class - there's nothing else to say. Another comment saying I should paste the linked-to code and describe it, despite linking to documentation for a class, not code.
I asked in the comments for advice on how to improve the answer, if I'd missed some rule or guidance, and got none, simply a deleted, downvoted answer.
I'd really appreciate if someone could fill me in.