Ta̱mpi̱let:Is redirect/doc
Li
This is a documentation subpage for Ta̱mpi̱let:Is redirect. It contains usage information, categories and other content that is not part of the original ta̱mpi̱let page. |
This template is used on many pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing 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
Talkpage handling
[jhyuk a̱tyin ka]By default, a check specifying a talk page is performed on the corresponding subject page (it's associated page in mainspace, or in Template space, etc.).
- To check the talkpage itself, both use
|talk=yes
and the talk page name. {{Is redirect|Talk:Autism|talk=yes}}
→
Background. By default, when entering a Talkpage to check (like Talk:Autism
), the check is performed on the subject page. This stems from the module used. For example:
- Page to check:
Talk:Autism
:{{Is redirect|Talk:Autism}}
- Current pages status: Autism is a redirect, A̱lyiat:Autism is not a redirect (it has content).
{{Is redirect}}
returns:{{Is redirect|Autism}}
→ Ta̱mpi̱let:Aye{{Is redirect|Talk:Autism}}
→ Ta̱mpi̱let:Question mark (unexpected for the talkpage itself)- Applying
Talk:Autism
: {{Is redirect|Talk:Autism|talk=yes}}
→ Ta̱mpi̱let:Aye- Applying the súbject page
Autism
: {{Is redirect|Autism|talk=yes}}
→ Ta̱mpi̱let:Aye (|talk=yes
for a súbject page name checks the subject page, not the associated talk page)
Usage
[jhyuk a̱tyin ka]- Main_Page (expect neg):
{{is redirect|Main_Page}}
→ yes - Mainpage (expect yes):
{{is redirect|Mainpage}}
→
Can be used as:
{{#if:{{Is redirect|somepagename}} |value when yes |value when no}}
Template Data
[jhyuk a̱tyin ka]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 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
[jhyuk a̱tyin ka]- {{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}}