Template:Exists/doc: Difference between revisions
Jump to navigation
Jump to search
Created page with "{{Documentation/Header}} {{Lua|Exists}} This template checks for a page's existence without causing the page to show up on Special:WhatLinksHere and Special:WantedPages, unlike #ifexist. ==Usage== {{T|Exists|v1=page to check|v2=content if exists|v3=content if does not exist}} ==Examples== {{T|Exists|p1=This page does not exist|p2=true|p3=false|_Y_=1}} {{T|Exists|p1=Eugene Grant|p2=true|p3=false|_Y_=1}} ==Template Data== <templatedata> { "params": { "1": {..." |
(No difference)
|
Latest revision as of 10:32, 10 June 2025
This is the documentation page for Exists. It contains usage information, categories, and other content not part of the original template page. | ||
|---|---|---|
| Main | Documentation | Usage |
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
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Page Name | 1 page | no description | Page name | required |
| True Result | 2 then | no description
| Unbalanced wikitext | suggested |
| False Result | 3 else | no description
| Unbalanced wikitext | suggested |