Predloga:Is redirect

Dokumentacija za predlogo[poglej] [uredi] [zgodovina] [osveži]

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: MainpageMain_Page

Expect 'yes': {{Is redirect|Autism}}
Expect '<blank>' (no): {{Is redirect|Autism spectrum}}

Talkpage handling uredi

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, Talk:Autism is not a redirect (it has content).
{{Is redirect}} returns:
{{Is redirect|Autism}}Zelena kljukicaY
{{Is redirect|Talk:Autism}}Predloga:Question mark (unexpected for the talkpage itself)
Applying Talk:Autism:
{{Is redirect|Talk:Autism|talk=yes}}Zelena kljukicaY
Applying the súbject page Autism:
{{Is redirect|Autism|talk=yes}}Zelena kljukicaY (|talk=yes for a súbject page name checks the subject page, not the associated talk page)

Usage uredi

  • Main_Page (expect neg): {{is redirect|Main_Page}}
  • Mainpage (expect yes): {{is redirect|Mainpage}}

Can be used as:

{{#if:{{Is redirect|somepagename}} |value when yes |value when no}}

Template Data uredi

To je dokumentacija TemplateData za predlogo, ki jo uporabljajo Vizualni urejevalnik in druga orodja; glejte mesečno poročilo o uporabi parametrov za to predlogo.

TemplateData za Is redirect

Returns "yes" or <blank> (for no) for the pagename entered

Parametri predloge[Urejanje podatkov predloge]

ParameterOpisVrstaStanje
11

brez opisa

Neznanoneobvezno
Check Talktalk

By default, the subject page is checked

Privzeto
no
Boolneobvezno

See also uredi