Template:Ifexist check redirect/doc

Overview
The Ifexist check redirect and Ifexist check redirect/if templates can be used to identify the status of an article: whether the article exists or not; if it does, whether it is blank, and/or whether an article is a redirect and what type of redirect it is (to a section of an article, or to the general article). This extends upon the use of { {#ifexist}}, which will only check whether the page exists.

Usage
Ifexist check redirect returns one of five values to determine the type of an article; these values are listed in first section of the table below.

Ifexist check redirect/if provides the same function as { {#if}} and { {#ifexist}}, using the return value of the previous template to provide two cases if the article type matches what is required.