Toggle menu
15
236
74
27.6K
Kenshi Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.
Revision as of 02:09, 21 February 2025 by Prd (talk | contribs) (Created page with "{{Documentation subpage}} <!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see Wikipedia:Wikidata) --> {{#ifeq:{{SUBPAGENAME}}|sandbox||{{High-use}}}} {{Lua|Module:Redirect}} == Usage == The '''<nowiki>{{</nowiki>Ifexist not redirect}}''' template can be used to identify a page which exists, is not blank, and is not a redirect; whereas {{tlx|ifexist}} will only check whether the page exists. Use the format <syntaxh...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Template:High-use

Usage

The {{Ifexist not redirect}} template can be used to identify a page which exists, is not blank, and is not a redirect; whereas {{ifexist}} will only check whether the page exists.

Use the format

{{Ifexist not redirect|page|return if true|return if false}}

. The 2nd and 3rd parameters are used to define the output of the template if the condition is true or false, respectively. If not defined the default output is "yes" if true and empty if false.

Examples

Existing article

{{Ifexist not redirect|List of Doctor Who episodes (1963–1989)|true|false}}

false

{{#ifexist:List of Doctor Who episodes (1963–1989)|true|false}}

false

Redirect

{{Ifexist not redirect|List of Daredevil episodes|yes|no}}

no

{{#ifexist:List of Daredevil episodes|yes|no}}

no

Empty article

{{Ifexist not redirect|Template:Ifexist not redirect/testpage|yes|no}}

no

{{#ifexist:Template:Ifexist not redirect/testpage|yes|no}}

yes

Non-existent article

{{Ifexist not redirect|Green Arrow episodes|1|0}}

0

{{#ifexist:Green Arrow episodes|1|0}}

0

Default output

{{Ifexist not redirect|List of Doctor Who episodes (1963–1989)}}
{{Ifexist not redirect|List of Daredevil episodes}}