At this point I know how to add a clickable link in my answer, and I can create such a link to a question by copying the URL from the top of the browser. But if I want to make reference to someone else's answer, how do I create a clickable link to it?
2 Answers
Each question and answer has a share
link underneath it. If you click on that, a small box with a link will pop up. You can then simply copy that link and paste into your answers.
It's helpful to insert the question itself as the text of the link. You do this in markup in the following way:
[ text here ](link here)
If the link is to a question, then the title of that question will be automatically inserted. So
https://tex.meta.stackexchange.com/q/1139/83 ask about linking to answers.
will display as
How do I create a link to an answer? ask about linking to answers.
-
1See also Automatic question's title insertion with link about automatic titles.– N.N.Commented May 3, 2012 at 9:50
-
-
-
1For what it's worth, I think renaming
link
toshare
was a mistake. I have often wanted to create a link to an answer, and not known how to find the link. I had always assumed that theshare
button would give me options to connect to Facebook, Twitter, and so on, which I never use. The wordlink
is much more appropriate for this feature. Commented May 17, 2013 at 6:42
There is now a stackapp Greasemonkey script which will give you a copy
button similar to the link
button below posts:
Copy Question Link Markdown - Making it easier to copy links to questions!
It provides you with the [<title>](<url>)
format required. You can use it in comments and also in question or answer posts.
I found a few issues with the script and rewrote parts of it. The revised version can be found as answer to the above stackapps post.