Şablon:Is redirect/belge
Ev belgekirin binrûpela ji bo Şablon:Is redirect e. Agahiyên bikaranîna kategorî û naveroka din ku ew beşek ji ne eslî yên şablon rûpel e. |
Bikaranîna Luayê: |
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: Kurdî → Zimanê kurdî
- Expect 'yes':
{{Is redirect|Kurdî}}
→ yes - Expect '<blank>' (no):
{{Is redirect|Zimanê kurdî}}
→
Talkpage handling
biguhêreBy 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, Talk:Autism is not a redirect (it has content).
{{Is redirect}}
returns:{{Is redirect|Autism}}
→{{Is redirect|Talk:Autism}}
→ (unexpected for the talkpage itself)- Applying
Talk:Autism
: {{Is redirect|Talk:Autism|talk=yes}}
→- Applying the súbject page
Autism
: {{Is redirect|Autism|talk=yes}}
→ (|talk=yes
for a súbject page name checks the subject page, not the associated talk page)
Usage
biguhêre- 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
biguhêreEv belgekirina TemplateDatayê ya vê şablonê ye ku ji aliyê VisualEditor û vebijarkên din ve tê bikaranîn.
TemplateData ji bo Is redirect
Returns "yes" or <blank> (for no) for the pagename entered
Parametre | Danasîn | Cure | Rewş | |
---|---|---|---|---|
1 | 1 | danasîn tune ye | Nayê zanîn | ne pêwîst |
Check Talk | talk | By default, the subject page is checked
| Erê/Na | ne pêwîst |
See also
biguhêre- {{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}}