Template:Noredirect: Difference between revisions
Jump to navigation
Jump to search
(another helpful tool from WP) |
m (changing link from http->https) |
||
(One intermediate revision by one other user not shown) | |||
Line 5: | Line 5: | ||
|[[:{{{1}}}]] | |[[:{{{1}}}]] | ||
}} | }} | ||
}}</includeonly><noinclude>It's occasionally desirable to be able to link to a redirect page directly, without actually following the redirect. The long way to do this is to make an external link like | }}</includeonly><noinclude>It's occasionally desirable to be able to link to a redirect page directly, without actually following the redirect. The long way to do this is to make an external link like https://wiki.oni2.net/w/index.php?title=Ai2_allpassive&redirect=no. Sure, you can display a different, shorter name using the [URL linkname] syntax, but you'll still have a pesky external link icon stuck [[https://wiki.oni2.net/w/index.php?title=Ai2_allpassive&redirect=no like this] onto the end of a link that you know is actually pointing to a page on this very wiki! This template provides a classy way to mask the dirty business that has to be done in order to link to a redirect page, while making it look like an internal link. Syntax is <nowiki>{{noredirect|page_name|optional displayed name}}</nowiki>. | ||
[[Category:Basic formatting templates]] | [[Category:Basic formatting templates]] | ||
</noinclude> | </noinclude> |
Latest revision as of 02:58, 7 February 2021
It's occasionally desirable to be able to link to a redirect page directly, without actually following the redirect. The long way to do this is to make an external link like https://wiki.oni2.net/w/index.php?title=Ai2_allpassive&redirect=no. Sure, you can display a different, shorter name using the [URL linkname] syntax, but you'll still have a pesky external link icon stuck [like this onto the end of a link that you know is actually pointing to a page on this very wiki! This template provides a classy way to mask the dirty business that has to be done in order to link to a redirect page, while making it look like an internal link. Syntax is {{noredirect|page_name|optional displayed name}}.