Difference between revisions of "Template:Redirect"

From Wildermyth Wiki
(handle multiple redirects)
Line 1: Line 1:
<includeonly>
<includeonly>
: ''"{{{1|{{PAGENAME}}}}}" redirects here.{{#if:{{{2|}}}
:''"{{{1|{{PAGENAME}}}}}" redirects here{{#if:{{{2|}}}|. For {{{2}}}, see [[{{{3}}}]]}}{{#if:{{{4|}}}|. For {{{4}}}, see [[{{{5}}}]]}}{{#if:{{{6|}}}|. For {{{6}}}, see [[{{{7}}}]]}}.''</includeonly>
| For {{{2}}}, see [[{{{3}}}]]{{#if:{{{4|}}}
<noinclude>
|. For {{{4}}}, see [[{{{5}}}]]{{#if:{{{6|}}}
|. For {{{6}}}, see [[{{{7}}}]]
}}}}.''</includeonly><noinclude>
{{Redirect/doc}}
{{Redirect/doc}}
</noinclude>
</noinclude>

Revision as of 16:47, 17 September 2025


This is a standardized message for redirect pages, and links to other pages that are ambiguous with the name of that redirect.

Template documentation: Template:Redirect/doc

Syntax

No Parameters (Invalid)

If no parameters are supplied, simply shows a redirect to the disambiguation page. This should never be used because a page never redirects to itself.

{{Redirect}}
"Redirect" redirects here.

1 Parameter

If only one parameter is supplied, the disambiguation page of the supplied parameter will be used.

{{Redirect|REDIRECT}}
{{Redirect|Foo}}
"Foo" redirects here.

2 Parameters

{{Redirect|FooThing|Foo}}

If two parameters are supplied, the first parameter is the name of the page that redirects here, and the second parameter is the 'other uses' page (Typically a disambiguation page).

"FooThing" redirects here. For Foo, see [[{{{3}}}]].

3 or 5 Parameters

If three parameters are supplied, the first parameter is the name of the page that redirects here. The second parameter is a use case, and the third parameter is the page for that usage. The same goes for params 4 and 5.

{{Redirect|Orange|the fruit|Orange_(fruit)}}
"Orange" redirects here. For the fruit, see Orange_(fruit).
{{Redirect|Orange|the fruit|Orange_(fruit)|the color|Orange_(Color)}}
"Orange" redirects here. For the fruit, see Orange_(fruit). For the color, see Orange_(color).