<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://drive.mcb.guru/index.php?action=history&amp;feed=atom&amp;title=Template%3AIf</id>
	<title>Template:If - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://drive.mcb.guru/index.php?action=history&amp;feed=atom&amp;title=Template%3AIf"/>
	<link rel="alternate" type="text/html" href="http://drive.mcb.guru/index.php?title=Template:If&amp;action=history"/>
	<updated>2026-05-02T06:25:38Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>http://drive.mcb.guru/index.php?title=Template:If&amp;diff=2494&amp;oldid=prev</id>
		<title>Ret Samys: Created page with &quot;{{call|={{{2|{{{then|}}}}}}|{{{1|{{{if|}}}}}}={{{3|{{{else|}}}}}}}}&lt;noinclude&gt;Do NOT touch this template unless you can understand it completely.  Documentation: The first par...&quot;</title>
		<link rel="alternate" type="text/html" href="http://drive.mcb.guru/index.php?title=Template:If&amp;diff=2494&amp;oldid=prev"/>
		<updated>2016-09-14T21:31:57Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{call|={{{2|{{{then|}}}}}}|{{{1|{{{if|}}}}}}={{{3|{{{else|}}}}}}}}&amp;lt;noinclude&amp;gt;Do NOT touch this template unless you can understand it completely.  Documentation: The first par...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{call|={{{2|{{{then|}}}}}}|{{{1|{{{if|}}}}}}={{{3|{{{else|}}}}}}}}&amp;lt;noinclude&amp;gt;Do NOT touch this template unless you can understand it completely.&lt;br /&gt;
&lt;br /&gt;
Documentation: The first parameter is the &amp;quot;condition&amp;quot; (can be named &amp;quot;if&amp;quot;); if it&amp;#039;s nonempty, the second parameter (can be named &amp;quot;then&amp;quot;) is shown, otherwise the third parameter &amp;quot;else&amp;quot; is shown.&lt;br /&gt;
&lt;br /&gt;
NOTE: Named parameters are preferred, because they are not susceptible to problems arising from embedded &amp;quot;=&amp;quot; signs in the data.&lt;br /&gt;
&lt;br /&gt;
Importing from Wikipedia is easy if it uses &amp;#039;&amp;#039;&amp;#039;only&amp;#039;&amp;#039;&amp;#039; the if and ifeq parser functions. You should name each positional parameter (otherwise some templates with embedded = signs may fail mysteriously), then change #if: and #ifeq: to if| and ifeq|. For this template (if), the first parameter is called &amp;quot;if&amp;quot;, the second &amp;quot;then&amp;quot; and the third &amp;quot;else&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
For example, you need to change&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;{{#if:{{{1|}}}|&amp;lt;span class=&amp;quot;cool&amp;quot;&amp;gt;|&amp;lt;span class=&amp;quot;hidden&amp;quot;&amp;gt;}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
into&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;{{if|if={{{1|}}}|then=&amp;lt;span class=&amp;quot;cool&amp;quot;&amp;gt;|else=&amp;lt;span class=&amp;quot;hidden&amp;quot;&amp;gt;}}&amp;lt;/nowiki&amp;gt;.&lt;/div&gt;</summary>
		<author><name>Ret Samys</name></author>
	</entry>
</feed>