![]() | This is a documentation subpage for Template:No self-redirect. It may contain usage information, categories and other content that is not part of the original template page. |
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.
Usage
edit{{No self-redirect|pagename}}
or
{{No self-redirect|pagename|link text}}
Examples
edit- {{No self-redirect|Wikipedia}} → Wikipedia
- {{No self-redirect|Wikipedia|encyclopedia}} → encyclopedia
- {{No self-redirect|Template:No self-redirect}} → Template:No self-redirect
- {{No self-redirect|Template:No self-redirect|the template}} → the template
Template:Link if not self-redirect is a redirect to Template:No self-redirect.
- {{No self-redirect|Template:Link if not self-redirect}} → Template:Link if not self-redirect
- {{No self-redirect|Template:Link if not self-redirect|the template}} → the template