跳至內容

模板:Redirect

Chók-cê̤ṳ Wikipedia
[káng] [gāi] [sṳ̄] [purge] Documentation icon 模板其說明文檔

模板:About-distinguish2


模板:Notice 模板:High-use

This template produces a 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

模板:Expand-section 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}}
  • {{Redirect|REDIRECT||PAGE1}}
  • {{Redirect|REDIRECT|USE1|PAGE1}}
  • {{Redirect|REDIRECT|USE1|PAGE1|USE2|PAGE2|USE3|PAGE3}}
  • {{Redirect|REDIRECT|USE1|PAGE1|and|PAGE2}}
  • {{Redirect|REDIRECT|USE1|PAGE1|USE2|PAGE2|and|PAGE3}}
  • {{Redirect|Achilleus|the Emperor with this name|Achilleus (emperor)|other uses|Achilles (disambiguation)}} (as used on the page Achilles) →

More complex uses

For more complex cases, other templates can be used:

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools.

See the monthly error report for this template.

TemplateData for Redirect

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

模板參數[編輯模板資料]

此模板以參數行內格式為優先。

參數描述類型狀態
Redirecting page1

Name of page that redirects here

頁面名稱必填
Use 12

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

非必填
Target 13

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

頁面名稱非必填
Use 24

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

非必填
Target 25

Page to link second use to.

頁面名稱非必填
Use 36

Third use. Can be 'and'.

非必填
Target 37

Page to link third use to.

頁面名稱非必填
Custom texttext

Text to be appended to the end.

非必填


See also

Wikimedia Commons diē-sié ô gâe̤ng Template:Redirect ô-găng-guó gì nô̤i-ṳ̀ng.
at Wikimedia Commons.

模板:Hatnote templates 模板:Wikipedia templates 模板:Wikipedia editor navigation