Difference between revisions of "Template:Redirect"
(Created page with "<includeonly>:<div class="notice" id="redirect" style="font-style: italic;"> {{#if: {{{1|}}}|<!-- -->"{{{1}}}" redirects here. }}<!-- -->For {{#if:{{{2|}}}|{{{2}}}|...") |
|||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly> | + | <includeonly><div class="hatnote redirect-hatnote"> |
{{#if: {{{1|}}}|<!-- | {{#if: {{{1|}}}|<!-- | ||
-->"{{{1}}}" redirects here.  }}<!-- | -->"{{{1}}}" redirects here.  }}<!-- | ||
Line 14: | Line 14: | ||
-->}}<!-- | -->}}<!-- | ||
-->}}<!-- | -->}}<!-- | ||
− | -->}}}} | + | -->}}}} |
− | |||
− | |||
− | |||
− | |||
− | |||
</div></includeonly><noinclude> | </div></includeonly><noinclude> | ||
− | + | {{Documentation}} | |
− | + | <!-- Put categories/interwiki on the documentation page. --> | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
</noinclude> | </noinclude> |
Latest revision as of 20:45, 10 July 2023
This template produces a hatnote:
"REDIRECT" redirects here. For USE1, see PAGE1. For USE2, see PAGE2. For USE3, see PAGE3. For USE4, see PAGE4.
It is placed at the top of the article or section that is the primary topic of a redirect, and links to other topics that are ambiguous with the name of that redirect. This template is used instead of the generic {{for}} in order to reduce reader confusion.
Usage
The first unnamed parameter is the name of the page the user may have been redirected from.
The next eight parameters in pairs of two denote an alternate use and then a page.
- If the use is left blank, it defaults to "for other uses".
- If the page is left blank, it defaults to the value of the corresponding use parameter, which if blank will default to
{{{1}}} (disambiguation)
Examples
{{Redirect|Foo}}
"Foo" redirects here. For other uses, see Foo (disambiguation).
{{Redirect|REDIRECT||PAGE1}}
"REDIRECT" redirects here. For other uses, see PAGE1.
{{Redirect|REDIRECT|USE1|PAGE1}}
"REDIRECT" redirects here. For USE1, see PAGE1.
{{Redirect|REDIRECT|USE1|PAGE1|USE2|PAGE2}}
{{Redirect|REDIRECT|USE1|PAGE1|and|PAGE2}}