Simple positive case
{{Exist not redirect|Japan}}

{{Exist not redirect}}

Japan

{{Exist not redirect/sandbox}}

Japan

Simple negative case
{{Exist not redirect|The exciting story of paint drying in a small town in Japan one day in April 1927}}

{{Exist not redirect}}


{{Exist not redirect/sandbox}}


Simple positive other namespace case
{{Exist not redirect|Portal:History}}

{{Exist not redirect}}

Portal:History

{{Exist not redirect/sandbox}}

Portal:History

Negative case due to redirect
{{Exist not redirect|Portal:Idaho}}

{{Exist not redirect}}

Portal:Idaho

{{Exist not redirect/sandbox}}

Portal:Idaho

Simple positive File: case
{{Exist not redirect|File:SNice.svg}}

{{Exist not redirect}}

File:SNice.svg

{{Exist not redirect/sandbox}}

File:SNice.svg

Simple positive :File: case
{{Exist not redirect|:File:SNice.svg}}

{{Exist not redirect}}


File:SNice.svg

{{Exist not redirect/sandbox}}


File:SNice.svg
Simple positive Media: case
{{Exist not redirect|Media:SNice.svg}}

{{Exist not redirect}}

Media:SNice.svg

{{Exist not redirect/sandbox}}

Media:SNice.svg

Simple negative File: case, demand local
{{Exist not redirect|File:SNice.svg|forcefile=yes}}

{{Exist not redirect}}


{{Exist not redirect/sandbox}}


Simple positive File: case, demand local
{{Exist not redirect|File:Sonic2Gameplay.gif|forcefile=yes}}

{{Exist not redirect}}

File:Sonic2Gameplay.gif

{{Exist not redirect/sandbox}}

File:Sonic2Gameplay.gif

We get what we ask for~
[[{{ExistNotRedirect|File:Ukrainian orchestra.jpg}}|106px]]
Expanded code
[[File:Ukrainian orchestra.jpg|106px]]
[[File:Ukrainian orchestra.jpg|106px]]
Reject foreign file
{{Exist not redirect|:ja:File:20081106小瀬川発電所.JPG}}

{{Exist not redirect}}


{{Exist not redirect/sandbox}}