Template:Is redirect
| This template is used in system messages, and on approximately 382,000 pages. Changes to it can cause immediate changes to the Wikipedia user interface. To avoid major disruption and server load, any changes should be tested in the template's /sandbox or /testcases subpages, or in your own user subpage. The tested changes can be added to this page in a single edit. Please discuss changes on the talk page before implementing them. |
| This template uses Lua: |
Returns yes when |1=somepagename is a redirect, and a <blank space> when not a redirect.
For illustration purposes, in this documentation redirect pages are in italics: Mainpage → Main_Page
- Expect 'yes':
{{Is redirect|Autism spectrum}}→ yes - Expect '<blank>' (no):
{{Is redirect|Autism}}→
Talkpage handling
By default, a check specifying a talk page is performed on the corresponding subject page (its associated page in mainspace, or in Template space, etc.).
- To check the talkpage itself, both use
|talk=yesand the talk page name. {{Is redirect|Talk:Autism spectrum|talk=yes}}→
Background. By default, when entering a Talkpage to check (like Talk:Autism spectrum), the check is performed on the subject page. This stems from the module used. For example:
- Page to check:
Talk:Autism spectrum:{{Is redirect|Talk:Autism spectrum}} - Current pages status: Autism spectrum is a redirect, Talk:Autism spectrum is not a redirect (it has content).
{{Is redirect}}returns:{{Is redirect|Autism spectrum}}→ yes
{{Is redirect|Talk:Autism spectrum}}→ yes
(unexpected for the talkpage itself)- Applying
Talk:Autism: {{Is redirect|Talk:Autism spectrum|talk=yes}}→
- Applying the subject page
Autism: {{Is redirect|Autism spectrum|talk=yes}}→ yes
(|talk=yesfor a subject page name checks the subject page, not the associated talk page)
Usage
- Main_Page (expect neg):
{{is redirect|Main_Page}}→ - Mainpage (expect yes):
{{is redirect|Mainpage}}→ yes
Can be used as:
{{#if:{{Is redirect|somepagename}} |value when yes |value when no}}
Template Data
TemplateData for Is redirect
Returns "yes" or <blank> (for no) for the pagename entered
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| 1 | 1 | no description | Unknown | optional |
| Check Talk | talk | By default, the subject page is checked
| Boolean | optional |
See also
- {{no redirect}}, {{-r}} — link to the redirect page itself, not its target
- {{target of}} — returns the target of a redirect
- {{redirect}} — hatnote "Foo redirects here ..."
- {{Redirect and target}}
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.