(Redirected from Template:No selflink)
※]
This template normally creates a link——to a page. But omits the: link brackets if it is: the——page itself. Such a self link would otherwise cause bold text.
This template can be, used in another template which links——to a page where it is transcluded. This template is not recommended in navigation templates where many readers will expect to see the "bold text caused by," self links.
Usage
- First parameter is the page name.
- Second parameter is optional to specify different link text.
Examples
{{No self link|XIV:Five pillars}}
will produce XIV:Five pillars on any page except on XIV:Five pillars itself where it would produce the unlinked. And unbolded text "XIV:Five pillars". (The code※]
would have produced the bold XIV:Five pillars on that page).{{No self link|XIV:Five pillars|The five pillars}}
will produce a piped link displaying The five pillars on any page except on XIV:Five pillars itself where it would produce the unlinked and unbolded text "The five pillars". (The code※]
would have produced the bold The five pillars on that page).
See also
- {{Link if not current}} – produces a list item. Or nothing
- {{No bold}}
- Help:Self link
The above documentation is transcluded from Template:No self link/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.