Difference between revisions of "Template:Redirect"

From Mine Blocks Wiki
Jump to navigation Jump to search
If you find a typo, inconsistency, or error, please sign up and help out the wiki! We can't do it without your help! :D Thank you!

 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>:<div class="notice" id="redirect" style="font-style: italic;">
+
<includeonly><div class="hatnote redirect-hatnote">
 
{{#if: {{{1|}}}|<!--
 
{{#if: {{{1|}}}|<!--
 
   -->"{{{1}}}" redirects here.&#32;&#32;}}<!--
 
   -->"{{{1}}}" redirects here.&#32;&#32;}}<!--
Line 16: Line 16:
 
-->}}}}
 
-->}}}}
 
</div></includeonly><noinclude>
 
</div></includeonly><noinclude>
 
+
{{Documentation}}
<code>{<nowiki/>{Redirect|REDIRECT|USE1|PAGE1|USE2|PAGE2|USE3|PAGE3|USE4|PAGE4}}</code>
+
<!-- Put categories/interwiki on the documentation page. -->
 
 
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 <code>{{{1}}} (disambiguation)</code>
 
 
 
== Examples ==
 
<code><nowiki>{{Redirect|Foo}}</nowiki></code>
 
{{Redirect|Foo}}
 
 
 
<code><nowiki>{{Redirect|REDIRECT||PAGE1}}</nowiki></code>
 
{{Redirect|REDIRECT||PAGE1}}
 
 
 
<code><nowiki>{{Redirect|REDIRECT|USE1|PAGE1}}</nowiki></code>
 
{{Redirect|REDIRECT|USE1|PAGE1}}
 
 
 
<code><nowiki>{{Redirect|REDIRECT|USE1|PAGE1|USE2|PAGE2}}</nowiki></code>
 
{{Redirect|REDIRECT|USE1|PAGE1|USE2|PAGE2}}
 
 
 
<code><nowiki>{{Redirect|REDIRECT|USE1|PAGE1|and|PAGE2}}</nowiki></code>
 
{{Redirect|REDIRECT|USE1|PAGE1|and|PAGE2}}
 
 
</noinclude>
 
</noinclude>

Latest revision as of 20:45, 10 July 2023

Template-info.png Template documentation Note: parts of or the entire template might not be visible without values provided.

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" redirects here. For USE1, see PAGE1. For USE2, see PAGE2.

{{Redirect|REDIRECT|USE1|PAGE1|and|PAGE2}}

"REDIRECT" redirects here. For USE1, see PAGE1 and PAGE2.