Template:Exists: Difference between revisions

From FHX Wiki
No edit summary
No edit summary
Line 3: Line 3:
<pre>{{exists|page=|then=|else=}}</pre>
<pre>{{exists|page=|then=|else=}}</pre>


Users <pre>#ifeq<.pre> to check if provided page exists. This should be used in place of <pre>#ifeq</pre> or <pre>#ifexists</pre> to avoid created unwanted ''Wanted pages''.
Uses <pre>#ifeq</pre> to check if provided page exists. This should be used in place of <pre>#ifeq</pre> or <pre>#ifexists</pre> to avoid created unwanted ''Wanted pages''.


=== Parameters ===
=== Parameters ===

Revision as of 19:13, 10 February 2025

Description

{{exists|page=|then=|else=}}

Uses

#ifeq

to check if provided page exists. This should be used in place of

#ifeq

or

#ifexists

to avoid created unwanted Wanted pages.

Parameters

1 (unnamed parameter)
Page name.
2 (unnamed parameter)
Optional; defaults to 1. Include if then result is desired.
3 (unnamed parameter)
Optional; defaults to 0. Include if else result is desired.