Template:Ifexist not redirect/sandbox
Appearance
![]() | This is the template sandbox page for Template:Ifexist not redirect (diff). See also the companion subpage for test cases. |
![]() | This template uses Lua: |
Usage
[edit]The {{Ifexist not redirect}} template can be used to identify a page which exists, is not blank, and is not a redirect; whereas {{ifexist}}
will only check whether the page exists.
{{Ifexist not redirect|page|return if true|return if false}}
Examples
[edit]Existing article
[edit]{{Ifexist not redirect|List of Doctor Who episodes (1963–1989)|true|false}}
true
{{#ifexist:List of Doctor Who episodes (1963–1989)|true|false}}
true
Redirect
[edit]{{Ifexist not redirect|List of Daredevil episodes|yes|no}}
no
{{#ifexist:List of Daredevil episodes|yes|no}}
yes
Empty article
[edit]{{Ifexist not redirect|Template:Ifexist not redirect/testpage|yes|no}}
no
{{#ifexist:Template:Ifexist not redirect/testpage|yes|no}}
yes
Non-existent article
[edit]{{Ifexist not redirect|Green Arrow episodes|1|0}}
0
{{#ifexist:Green Arrow episodes|1|0}}
0
Default output
[edit]{{Ifexist not redirect|List of Doctor Who episodes (1963–1989)}}
yes
{{Ifexist not redirect|List of Daredevil episodes}}