Template documentationedit documentation
Use this template to check whether a page exists. It differs from alternatives such as #ifexist in that the page containing this template is not recorded as linking to or transcluding the page being checked. This has the advantage of avoiding spurious wikilinks and crowding pages like Special:WantedPages, but has the disadvantage that the containing page may not be updated automatically when the checked page is created or deleted later.
Examples[edit source]
{{EXISTS|Welcome to Appropedia}}
→ 1{{EXISTS|File:Appropedia.png}}
→ 1{{EXISTS|Non-existent page}}
→
Files in Commons are checked correctly:
{{EXISTS|File:Arrow-down.svg}}
→ 1{{EXISTS|File:Non-existent file.svg}}
→
But interwiki links always return true:
{{EXISTS|Wikipedia:Science}}
→ 1{{EXISTS|Wikipedia:Non-existent page}}
→ 1
Empty calls refer to the current page (in this case, Template:EXISTS):
{{EXISTS| }}
→ 1{{EXISTS|}}
→ 1{{EXISTS}}
→ 1
Finally, invalid titles (titles with forbidden characters) always return false:
{{EXISTS|<3}}
→{{EXISTS|{{{1}}}}}
→