Template:Noredirect: Difference between revisions

From OniGalore
Jump to navigation Jump to search
(another helpful tool from WP)
 
m (there's more than one link icon now)
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 http://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 still have [http://wiki.oni2.net/w/index.php?title=Ai2_allpassive&redirect=no that dang external link icon] stuck 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>.
}}</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 http://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 [[http://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>

Revision as of 02:56, 26 September 2017

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 http://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}}.