Template:Target of/doc

Returns the target page of a link, whether it's a redirect or not.

Usage
The page "AD 2000" is a redirect to "2000", so it displays "2000". The page "2000" isn't a redirect, so it displays "2000". You can use it in links, &c.
 * 

It also supports redirects to anchored sections: It can be used in "piped" local links that support alternative labels:
 * |WP:BRINT