This template normally makes a link but displays unlinked text if a link would be a self-redirect to the page itself, or a self-link directly to the page itself.

{{No self-redirect|pagename}}

or

{{No self-redirect|pagename|link text}}

Template:Link if not self-redirect is a redirect to Template:No self-redirect.