Template talk:Exists

From Wikipedia, the free encyclopedia
Jump to: navigation, search


r533945637 returns true for pagenames containing apostrophe:

  • {{exists|Foo's Bar}} {{#ifexist:Foo's Bar|1|0}} → 1 0
  • {{exists|'}} {{#ifexist:'|1|0}} → 1 1

BryghtShadow (talk) 03:13, 25 July 2013 (UTC)

It is caused by {{FULLPAGENAME:'}} returning '. Solution is to replace HTML entity apostrophe (') with ' like so:
For other HTML entities that get escaped by FULLPAGENAME, add more #replace. I hope this helps. --BryghtShadow (talk) 14:54, 25 July 2013 (UTC)


This template seems to work by comparing a link to the page under test with a transclusion of that page; if the page doesn't exist, the attempted transclusion instead returns a redlink, which tests as equal to the true link. If the page exists, and is large, that means that a lot of content is being transcluded unnecessarily. This is occurring at Wikipedia:Village pump (miscellaneous)/Archive L#.7B.7Bexists.7D.7D where the whole of Wikipedia:Village pump (miscellaneous) is being transcluded - invisibly, but it's still there - see What Links Here. --Redrose64 (talk) 19:19, 18 May 2014 (UTC)

Similarly the WikiProject Video Games banner was transcluding about a dozen GA review pages on 76,000 talk pages. This template is useful, but should almost never be used. All the best: Rich Farmbrough, 00:21, 12 February 2016 (UTC).
Is now only in use on the maths portal and a few user/archive pages. All the best: Rich Farmbrough, 17:15, 9 March 2016 (UTC).