Jump to content

Template:No redirect/doc

From Wikivoyage

'

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

Usage

[edit]
{{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

[edit]

Instead of having to copy/paste or type:

  • [https://en.wikivoyage.org/w/index.php?title=Lafayette_GA&redirect=no ''Lafayette GA'']

…an editor can type:

  • ''{{No redirect|Lafayette GA}}''

The second parameter (label) may be useful in discussions on talk pages. For example,

  • {{No redirect|Lafayette GA|this redirect}}

may appear on a talk page in this context: "For reference, see this redirect."

If there is no page with that name given by the first parameter, the template generates a redlink, as for any article name:

Also, if a page is not a redirect, a normal link is displayed:

TemplateData

[edit]

This is the TemplateData for Template:No redirect, for use by TemplateWizard, VisualEditor and other tools.

Template description

Produces links directly to a redirect's target page when given the name of a redirect page

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Page name1

The name of the page to link

Example
Léningrad
Page namerequired
Link text2

The text to be shown linked to the redirect target; if this is omitted, then the value of the first parameter is used.

Default
{{{1}}}
Example
a well-known Russian exclave
Lineoptional

See also

[edit]