This template will check if the specified page exists and output a link if it does (the display text can also be specified), or plain text if not.
Syntax: {{iflink|page to check|custom text (optional)}}

Note: "custom text," if defined, will be what is displayed on the page whether or not the page exists (in the latter case, "page to check" will be displayed as hovertext).

Note that this template (and the #ifexist parser function in general) cannot be used more than 100 times per page. If it is, any checks after the hundredth will return false even if the page exists.

Community content is available under CC-BY-SA unless otherwise noted.