Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Template:Redirect

Permanently protected template
From Wikipedia, the free encyclopedia
Template documentation[view] [edit] [history] [purge]
This page is about a hatnote template and is not to be confused with{{No redirect}},{{Talk page of redirect}},{{WikiProject Redirect}},{{Wiktionary redirect}}, or{{R avoided double redirect}}.
Using this template doesnot create a redirect. The following pages may have what you are looking for:
  • Wikipedia:Redirect is the official Wikipedia guideline on redirects. The page focuses on the rules and standards that the Wikipedia community has agreed togenerally follow regarding redirects.
  • Help:Redirect is a how-to page that focuses on the technical aspects of redirects. It instructs editors on how redirects work and how to handle them without causing errors.
  • R template index contains a large list of templates that are used in order to tag and categorize redirects.
WarningThis template is used onapproximately 59,000 pages and changes may be widely noticed. Test changes in the template's/sandbox or/testcases subpages, or in your ownuser subpage. Consider discussing changes on thetalk page before implementing them.
Due to a server limit of500 "expensive parser function" calls(e.g.#ifexist:,PAGESIZE:, andPAGESINCATEGORY:), this template will only work properly if the page using it has not already exceeded the limit. When the limit is exceeded, the page using this template or module is categorised inCategory:Pages with too many expensive parser function calls.(further information)
This template usesLua:

Description and use

This template produces ahatnote:

It is placed at the top of the article or section that isthe 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 emperorAchilleus. However, the search term "Achilleus" redirects to the page titledAchilles (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, seeAchilleus (Roman usurper).

That text is this template in action.

Parameters

[icon]
This sectionneeds expansion. You can help byadding to it.

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}}
    "Foo" redirects here. For other uses, seeFoo (disambiguation).
  • {{Redirect|REDIRECT||PAGE1}}
    "REDIRECT" redirects here. For other uses, seePAGE1.
  • {{Redirect|REDIRECT|USE1|PAGE1}}
    "REDIRECT" redirects here. For USE1, seePAGE1.
  • {{Redirect|REDIRECT|USE1|PAGE1|USE2|PAGE2|USE3|PAGE3}}
    "REDIRECT" redirects here. For USE1, seePAGE1. For USE2, seePAGE2. For USE3, seePAGE3.
  • {{Redirect|REDIRECT|USE1|PAGE1|and|PAGE2}}
    "REDIRECT" redirects here. For USE1, seePAGE1 andPAGE2.
  • {{Redirect|REDIRECT|USE1|PAGE1|USE2|PAGE2|and|PAGE3}}
    "REDIRECT" redirects here. For USE1, seePAGE1. For USE2, seePAGE2 andPAGE3.
  • {{Redirect|Achilleus|the Emperor with this name|Achilleus (emperor)|other uses|Achilles (disambiguation)}} (as used on the pageAchilles) →
    "Achilleus" redirects here. For the Emperor with this name, seeAchilleus (emperor). For other uses, seeAchilles (disambiguation).

The|selfref=yes option marks the entire hatnote as a Wikipedia self-reference, causing it to be omitted when the page content is reused outside of Wikipedia (see{{self reference}} andMOS:SELFREF for more details).

More complex uses

For more complex cases, other templates can be used:

TemplateData

This is theTemplateData for this template used byTemplateWizard,VisualEditor and other tools.See a monthly parameter usage report forTemplate:Redirect in articles based on its TemplateData.

TemplateData for Redirect

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

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Redirecting page1

Name of page that redirects here

Page namerequired
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)]].

Page nameoptional
Use 24

Second use. Can be 'and' to give: "For Use 1, see [[Target 1]] and [[Target 2]]."

Lineoptional
Target 25

Page to link second use to.

Page nameoptional
Use 36

Third use. Can be 'and'.

Lineoptional
Target 37

Page to link third use to.

Page nameoptional
Custom texttext

Text to be appended to the end.

Lineoptional
Is self-reference?selfref

Set to yes to make this hatnote invisible on e.g. printed versions, for [[WP:SELFREF]]s

Default
no
Auto value
yes
Booleanoptional

See also

Generic
For and about
Variations
Other topics
Redirect
Distinguish
For use in sections
Special
Subject specific
The abovedocumentation istranscluded fromTemplate:Redirect/doc.(edit |history)
Editors can experiment in this template'ssandbox(edit |diff) andtestcases(edit) pages.
Add categories to the/doc subpage.Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Redirect&oldid=827943535"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp