<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://dlwiki.cherrymint.live/index.php?action=history&amp;feed=atom&amp;title=Template%3AExists%2Fdoc</id>
	<title>Template:Exists/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://dlwiki.cherrymint.live/index.php?action=history&amp;feed=atom&amp;title=Template%3AExists%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://dlwiki.cherrymint.live/index.php?title=Template:Exists/doc&amp;action=history"/>
	<updated>2026-07-24T18:23:10Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.14</generator>
	<entry>
		<id>https://dlwiki.cherrymint.live/index.php?title=Template:Exists/doc&amp;diff=279560&amp;oldid=prev</id>
		<title>&gt;Canim44: Removed Category:Branching templates</title>
		<link rel="alternate" type="text/html" href="https://dlwiki.cherrymint.live/index.php?title=Template:Exists/doc&amp;diff=279560&amp;oldid=prev"/>
		<updated>2019-08-05T18:15:13Z</updated>

		<summary type="html">&lt;p&gt;Removed Category:Branching templates&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 18:15, 5 August 2019&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>&gt;Canim44</name></author>
	</entry>
	<entry>
		<id>https://dlwiki.cherrymint.live/index.php?title=Template:Exists/doc&amp;diff=279559&amp;oldid=prev</id>
		<title>&gt;Canim44: Removed Category:Branching templates</title>
		<link rel="alternate" type="text/html" href="https://dlwiki.cherrymint.live/index.php?title=Template:Exists/doc&amp;diff=279559&amp;oldid=prev"/>
		<updated>2019-08-05T18:15:13Z</updated>

		<summary type="html">&lt;p&gt;Removed Category:Branching templates&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 18:15, 5 August 2019&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>&gt;Canim44</name></author>
	</entry>
	<entry>
		<id>https://dlwiki.cherrymint.live/index.php?title=Template:Exists/doc&amp;diff=279558&amp;oldid=prev</id>
		<title>&gt;Canim44: Removed Category:Branching templates</title>
		<link rel="alternate" type="text/html" href="https://dlwiki.cherrymint.live/index.php?title=Template:Exists/doc&amp;diff=279558&amp;oldid=prev"/>
		<updated>2019-08-05T18:15:13Z</updated>

		<summary type="html">&lt;p&gt;Removed Category:Branching templates&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 18:15, 5 August 2019&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l29&quot; &gt;Line 29:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 29:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*[https://meta.wikimedia.org/wiki/Template:Exist Template:Exist] - similar, but with parameters similar to those of other branching functions and templates&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*[https://meta.wikimedia.org/wiki/Template:Exist Template:Exist] - similar, but with parameters similar to those of other branching functions and templates&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*[https://meta.wikimedia.org/wiki/Template:Exists Template:Exists] - original source from WikiMedia&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*[https://meta.wikimedia.org/wiki/Template:Exists Template:Exists] - original source from WikiMedia&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;includeonly&amp;gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Branching templates|{{PAGENAME}}]]&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/includeonly&amp;gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>&gt;Canim44</name></author>
	</entry>
	<entry>
		<id>https://dlwiki.cherrymint.live/index.php?title=Template:Exists/doc&amp;diff=275170&amp;oldid=prev</id>
		<title>&gt;Canim44: Creating Template:Exists/doc</title>
		<link rel="alternate" type="text/html" href="https://dlwiki.cherrymint.live/index.php?title=Template:Exists/doc&amp;diff=275170&amp;oldid=prev"/>
		<updated>2019-07-18T16:15:27Z</updated>

		<summary type="html">&lt;p&gt;Creating Template:Exists/doc&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 16:15, 18 July 2019&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>&gt;Canim44</name></author>
	</entry>
	<entry>
		<id>https://dlwiki.cherrymint.live/index.php?title=Template:Exists/doc&amp;diff=275169&amp;oldid=prev</id>
		<title>&gt;Canim44: Creating Template:Exists/doc</title>
		<link rel="alternate" type="text/html" href="https://dlwiki.cherrymint.live/index.php?title=Template:Exists/doc&amp;diff=275169&amp;oldid=prev"/>
		<updated>2019-07-18T16:15:27Z</updated>

		<summary type="html">&lt;p&gt;Creating Template:Exists/doc&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 16:15, 18 July 2019&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>&gt;Canim44</name></author>
	</entry>
	<entry>
		<id>https://dlwiki.cherrymint.live/index.php?title=Template:Exists/doc&amp;diff=275168&amp;oldid=prev</id>
		<title>&gt;Canim44: Creating Template:Exists/doc</title>
		<link rel="alternate" type="text/html" href="https://dlwiki.cherrymint.live/index.php?title=Template:Exists/doc&amp;diff=275168&amp;oldid=prev"/>
		<updated>2019-07-18T16:15:27Z</updated>

		<summary type="html">&lt;p&gt;Creating Template:Exists/doc&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This template tests whether a given page [https://meta.wikimedia.org/wiki/Help:Page_existence exists]. It can be useful in view of the maximum number of [https://meta.wikimedia.org/wiki/ParserFunctions#.23ifexist: #ifexist] calls that can be used on a page. (However, in the case of frivolous use of #ifexist which was the reason for the limit, do not replace this use with frivolous use of this template!)&lt;br /&gt;
&lt;br /&gt;
The full syntax for using it is:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt;exists | page=''page'' | then=''result if page exists'' | else=''result if page does not exist'' }}&lt;br /&gt;
&lt;br /&gt;
The parameters &amp;lt;code&amp;gt;then&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;else&amp;lt;/code&amp;gt; are optional; if not given, the default values for &amp;lt;code&amp;gt;then&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;else&amp;lt;/code&amp;gt; are ''1'' and ''0'' respectively.  The page name may alternatively be given as the first unnamed parameter, as in this short version:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt;exists | ''page'' }}&lt;br /&gt;
&lt;br /&gt;
The method is based on transclusion of the possibly existing page. If the page does not exist the code for page transclusion produces a (red) link. Even if this result is used for comparison only, and not for final output, the page counts as being transcluded. Therefore the page appears as red link in the list of transcluded pages.&lt;br /&gt;
&lt;br /&gt;
If the page to be transcluded does not exist, then link brackets are put around the full pagename, with the following conversions (visible with [[Special:ExpandTemplates]]):&lt;br /&gt;
*a colon is put in front if it is not there yet&lt;br /&gt;
*the namespace name (if applicable) and the pagename are capitalized (on most wikis)&lt;br /&gt;
*underscores are replaced by spaces&lt;br /&gt;
&lt;br /&gt;
Thus &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{help:qq w_x}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{:help:qq w_x}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; both give &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;[[:Help:Qq w x]]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
For the link there is not such an automatic conversion. Therefore the template prefixes a colon to the parameter for the full pagename (it should not already start with a colon) and applies lc and anchorencode (to convert spaces to underscores) on both sides before comparison:&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{anchorencode:{{lc:[[:help:qq w_x]]}}}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; gives {{anchorencode:{{lc:[[:help:qq w_x]]}}}}&lt;br /&gt;
*&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{anchorencode:{{lc:{{help:qq w_x}}}}}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; gives {{anchorencode:{{lc:{{help:qq w_x}}}}}}&lt;br /&gt;
&lt;br /&gt;
Thus a false-positive for a non-existing page is avoided. A false-negative for an existing page is possible, but typically only for specially constructed examples. &lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[https://meta.wikimedia.org/wiki/Help:Page_existence Help:Page existence]&lt;br /&gt;
*[https://meta.wikimedia.org/wiki/Template:Exist Template:Exist] - similar, but with parameters similar to those of other branching functions and templates&lt;br /&gt;
*[https://meta.wikimedia.org/wiki/Template:Exists Template:Exists] - original source from WikiMedia&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;&lt;br /&gt;
[[Category:Branching templates|{{PAGENAME}}]]&lt;br /&gt;
&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>&gt;Canim44</name></author>
	</entry>
</feed>