Template:Exists

From Zombie Panic! Official Wiki
Revision as of 10:31, 10 June 2025 by Wuffesan (talk | contribs) (Created page with "<includeonly>{{#invoke:Exists|main}}</includeonly><noinclude>{{Documentation|type=Utility}}</noinclude>")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Documentation icon Template documentation
Note: parts of or the entire template might not be visible without values provided.
This template uses Module:Exists, a script written in Lua.

This template checks for a page's existence without causing the page to show up on Special:WhatLinksHere and Special:WantedPages, unlike #ifexist.

Usage

{{Exists|page to check|content if exists|content if does not exist}}

Examples

{{Exists|This page does not exist|true|false}} yields: false

{{Exists|Eugene Grant|true|false}} yields: true

Template Data

Check if page exists

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Page Name1 page

no description

Page namerequired
True Result2 then

no description

Example
Result if page exists
Unbalanced wikitextsuggested
False Result3 else

no description

Example
Result if page does not exist
Unbalanced wikitextsuggested