Template:No redirect/doc: Difference between revisions

From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
Content added Content deleted
(emphasize that the links bypass the target page and go directly to their redirect pages)
(→‎Example: clarify 2nd parameter)
Line 20: Line 20:
* <code><nowiki>''{{-r|The Silence of the Sea}}''</nowiki></code>
* <code><nowiki>''{{-r|The Silence of the Sea}}''</nowiki></code>
All of these will take users ''directly'' to the same redirect page – ''{{-r|The Silence of the Sea}}''.
All of these will take users ''directly'' to the same redirect page – ''{{-r|The Silence of the Sea}}''.
* The second parameter (label) may come in handy during discussions on talk pages:
<pre>
{{-r|The Silence of the Sea|this redirect}}
</pre>
: ...may produce some thing like: "...For reference, you might want to see {{-r|The Silence of the Sea|this redirect}} so we're both on the 'same page'."


=== See also ===
=== See also ===

Revision as of 09:40, July 10, 2014

Usage

This template provides an easy way to link to a page without following a redirect.

{{no redirect|page name|label}}

It accepts two unnamed parameters:

  • 1= (required) the name of the page to link.
  • 2= (optional) the text to be displayed. If this is omitted then the input of the first parameter is used.

Example

Instead of having to copy/paste or type:

  • [http://en.wikipedia.org/w/index.php?title=The_Silence_of_the_Sea&redirect=no ''The Silence of the Sea'']

an editor can type:

  • ''{{No redirect|The Silence of the Sea}}''

or an alias can be used, as in:

  • ''{{-r|The Silence of the Sea}}''

All of these will take users directly to the same redirect page – Template:-r.

  • The second parameter (label) may come in handy during discussions on talk pages:
{{-r|The Silence of the Sea|this redirect}}
...may produce some thing like: "...For reference, you might want to see Template:-r so we're both on the 'same page'."

See also