User:The Great Tomato/Sandbox/ifexists
From Guild Wars Wiki
Jump to navigationJump to search
Description[edit]
{{User:The Great Tomato/Sandbox/ifexists|(pagename)|(then)|(else)}}
This template is similar to {{ #ifexist: }} 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[edit]
- 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.