User:The Great Tomato/Sandbox/ifexists

Description
This template is similar to   as it checks the existance of the given page. The difference is that the checked page is not added to Wanted pages.

Differences to the currently used template:
 * It does not feature the templates used on the target page if the target page does exist, on the page with the query on.
 * It does put the red link of the page if it does not exist in the "Templates used in this preview" list, or similarly the link to the page if it does exist.

Parameters

 * unnamed parameter 1
 * Pagename without braces, including namespace.


 * unnamed parameter 2
 * Optional. Wikitext if page exists.


 * unnamed parameter 3
 * Optional. Wikitext if page does not exists.