|laziness, impatience, and hubris|
How do I link to a node on this site by number?by SiteDocClan
|on Jun 10, 2000 at 01:36 UTC||Need Help??|
To link to a node by ID, use the syntax [id://nnnnn].
Finding the ID number of a node
If someone created a link to a node using its ID number, as described above, then the URL will contain the number, and you can use that number yourself if you want to make your own link to that node.
If, however, you only know the title of the node, then finding its ID number is a little more involved. The easiest way is to actually go to the node (follow a link to it, or type the title in the Search box) and get the ID of the node from its page. The ID of each node can usually be found near the top, just under the title. For example, on the page you are now viewing, you should see #17441 up above, just below How do I link to a node on this site by number?
If linking to nodes by ID is something you'll want to do a lot,
then you may find it convenient to have each node's ID displayed
in your browser's title bar. You can do this through a user setting.
To do this:
To retrieve the ID of a node programmatically, you can use one of our
XML generators to get the metadata of a node, including its ID and title.
For example, you can get the info of this page with the
Especially, read and heed these important shortcut usage tips!
Back to the PerlMonks FAQ