Template:Redirect

From imedwiki
Jump to navigation Jump to search
Template documentation[view] [edit] [history] [purge]
  1. REDIRECT Template:About-distinguish-text


This template produces a hatnote:

  • {{Redirect|Foo}}Script error: No such module "redirect hatnote".

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.

An example would be when a user searches for the emperor Achilleus. However, the search term "Achilleus" redirects to the page titled Achilles (as in the mythical hero) because it is considered more likely the user were searching for the very well known hero than a relatively obscure emperor. Now, at the top of this Achilles page you will (among other things) find the following hatnote:

"Achilleus" redirects here. For the Roman emperor with this name, see Achilleus (Roman usurper).

That text is this template in action.

Parameters

A |text= option adds text to the end; note that this should only be used when truly necessary, when the other hatnote templates listed below don't suffice.

Examples

  • {{Redirect|Foo}}Script error: No such module "redirect hatnote".
  • {{Redirect|REDIRECT||PAGE1}}Script error: No such module "redirect hatnote".
  • {{Redirect|REDIRECT|USE1|PAGE1}}Script error: No such module "redirect hatnote".
  • {{Redirect|REDIRECT|USE1|PAGE1|USE2|PAGE2|USE3|PAGE3}}Script error: No such module "redirect hatnote".
  • {{Redirect|REDIRECT|USE1|PAGE1|and|PAGE2}}Script error: No such module "redirect hatnote".
  • {{Redirect|REDIRECT|USE1|PAGE1|USE2|PAGE2|and|PAGE3}}Script error: No such module "redirect hatnote".
  • {{Redirect|Achilleus|the Emperor with this name|Achilleus (emperor)|other uses|Achilles (disambiguation)}} (as used on the page Achilles) → Script error: No such module "redirect hatnote".

More complex uses

For more complex cases, other templates can be used:

TemplateData

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. Click here to see a monthly parameter usage report for this template based on this TemplateData.

TemplateData for Redirect

This template produces a hatnote similar to: "Foo" redirects here. For other uses, see [[Foo (disambiguation)]].

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Redirecting page1

Name of page that redirects here

Pagerequired
Use 12

Displayed as: For Use 1, see ... If left empty, defaults to For other uses, see ...

Lineoptional
Target 13

Page to link to. Default is [[PAGENAME (disambiguation)]].

Pageoptional
Use 24

Second use. Can be 'and' to give: For Use 1, see [[Target1]] and [[Target2]].

Lineoptional
Target 25

Page to link second use to.

Pageoptional
Use 36

Third use. Can be 'and'.

Lineoptional
Target 37

Page to link third use to.

Pageoptional
Custom texttext

Text to be appended to the end.

Lineoptional


See also

This template is based (in parts) on the Template:Redirect from the free encyclopedia wikipedia and is licensed under GNU license for free documentation and the Creative Commons Attribution/Share Alike. On wikipedia there is a List of authors accessible. More about importing from wikipedia on page Imedwiki:Importing from wikipedia.