Use {{HMDB}} specifying the number of the compound entry as an argument.

Example : {{HMDB|59797}} will lead to the 1-Hydroxyphenanthrene page.