Difference between revisions of "Template:Redirect/doc"
Gamebuster (talk | contribs) (Created page with "{{Redirect}} {{Redirect|REDIRECT}} {{Redirect|REDIRECT|PAGE1}} {{Redirect|REDIRECT|USE1|PAGE1}} {{Redirect|REDIRECT|USE1|PAGE1|USE2|PAGE2}}") |
Gamebuster (talk | contribs) |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
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. | |||
<source>{{Redirect}}</source> | |||
{{Redirect}} | {{Redirect}} | ||
== 1 Parameter == | |||
If only one parameter is supplied, the disambiguation page of the supplied parameter will be used. | |||
<source> | |||
{{Redirect|REDIRECT}} | {{Redirect|REDIRECT}} | ||
{{Redirect| | {{Redirect|Foo}}</source> | ||
{{Redirect| | {{Redirect|Foo}} | ||
{{Redirect| | == 2 Parameters == | ||
<source>{{Redirect|FooThing|Foo}}</source> | |||
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). | |||
{{Redirect|FooThing|Foo}} | |||
== 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. | |||
<source>{{Redirect|Orange|the fruit|Orange_(fruit)}}</source> | |||
{{Redirect|Orange|the fruit|Orange_(fruit)}} | |||
<source>{{Redirect|Orange|the fruit|Orange_(fruit)|the color|Orange_(Color)}}</source> | |||
{{Redirect|Orange|the fruit|Orange_(fruit)|the color|Orange_(color)}} | |||
Latest revision as of 19:05, 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}}- Template:Redirect/doc redirects here. For other uses, see Template:Redirect/doc (disambiguation).
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. For other uses, see Foo (disambiguation).
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 other uses, see Foo.
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).