Terraria Wiki

Miss the old Hydra Skin? Try out our Hydralize gadget! Visit the preferences page while logged in and turn on the gadget.

READ MORE

Terraria Wiki
Advertisement
Terraria Wiki
Template-info.svg Documentation The documentation below is transcluded from Template:Ifexists/doc. (edit | history)

This template is similar to {{#ifexist:}} as it checks the existence of a given page. The difference is that the checked page is not added to the list of wanted pages, and that it does not increase the expensive parser function count.

Usage

{{ ifexists | <page name> | <then> | <else> | redirects = include/exclude/only }}

First unnamed parameter

Name of the page, including namespace.

Second unnamed parameter

Wikitext for if the page exists.

Third unnamed parameter

Wikitext for if page does not exist.

redirects

Whether to consider redirects, defaults to include.

Examples

Code Result
{{ifexists|Category:Terraria|exists|does not exist}} exists
{{ifexists|Foobar|exists}}
{{ifexists|Foobar|3=does not exist}} does not exist
{{ifexists|Template:L10n|exists|does not exist|redirects=exclude}} does not exist
Advertisement