Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

// request.cf · coarse context

A page that knows where it met you.

Only coarse request metadata is shown. This demo does not display or persist visitor IP addresses.

Country
US
Cloudflare location
CMH
Connection
HTTP/2
Language
Not provided

Ray ID: a230fa61dee42877

Jump to content

Template:If-exist/doc

From Wikipedia, the free encyclopedia

This template exists to be an optional template to be used by users instead of using {{If|exist|page name|then|else}} which might be a bit tricky. This template can be used with other template without causing any error(s).

In addition to pages, this template can also check media files' existence.

Usage

[edit]
{{If-exist|page name|[then this]|[else this]}} or {{If|exist|page name|[then this]|[else this]}}

Alternative

{{#ifexist:page name|[then this]|[else this]}}

Examples

[edit]
Markup Renders
{{If-exist|Example|[[Example]] exists|'''Example''' doesn't exists}}
Example exists
{{If-exist|Template:{{PAGENAME}}/doc|This page has a documentation subpage|This page doesn't have a documentation subpage}}
This page doesn't have a documentation subpage

See also

[edit]