<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://gw1wiki.ezgame.cc/index.php?action=history&amp;feed=atom&amp;title=Template%3AIfimage</id>
	<title>Template:Ifimage - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://gw1wiki.ezgame.cc/index.php?action=history&amp;feed=atom&amp;title=Template%3AIfimage"/>
	<link rel="alternate" type="text/html" href="https://gw1wiki.ezgame.cc/index.php?title=Template:Ifimage&amp;action=history"/>
	<updated>2026-10-18T03:49:46Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.17</generator>
	<entry>
		<id>https://gw1wiki.ezgame.cc/index.php?title=Template:Ifimage&amp;diff=2070&amp;oldid=prev</id>
		<title>gww&gt;Chieftain Alex at 15:27, 15 February 2015</title>
		<link rel="alternate" type="text/html" href="https://gw1wiki.ezgame.cc/index.php?title=Template:Ifimage&amp;diff=2070&amp;oldid=prev"/>
		<updated>2015-02-15T15:27:41Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;includeonly&amp;gt;{{#if: {{filepath:{{#replace:{{{1|}}}|File:|}}}} | {{{2|}}} | {{{3|}}} }}&amp;lt;/includeonly&amp;gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
== Description ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{ifimage|(filename)|(then)|(else)}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This template is similar to [[mw:Help:Extension:ParserFunctions##ifexist|&amp;lt;nowiki&amp;gt;{{#ifexist:}}&amp;lt;/nowiki&amp;gt;]] + {{tl|Ifexists}} as it checks the existence of the given file - this template however only works for files - not pages. The difference is that the checked file is not added to [[Special:Wantedpages|Wanted pages]], and no hefty DPL is needed either. Instead, it uses the MediaWiki built-in function [[mw:Magic word#URL data|&amp;lt;nowiki&amp;gt;{{filepath:}}&amp;lt;/nowiki&amp;gt;]].&lt;br /&gt;
&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
; ''unnamed parameter'' 1&lt;br /&gt;
: File name without braces, including namespace.&lt;br /&gt;
; ''unnamed parameter'' 2&lt;br /&gt;
: Optional. Wikitext if page exists.&lt;br /&gt;
; ''unnamed parameter'' 3&lt;br /&gt;
: Optional. Wikitext if page does not exists.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[[File:{{ifimage|Frenzy (black and white).jpg|Frenzy (black and white).jpg|Frenzy.jpg}}|20px]]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
[[File:{{ifimage|Frenzy (black and white).jpg|Frenzy (black and white).jpg|Frenzy.jpg}}|20px]]&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* {{tl|Ifexists}}&lt;br /&gt;
* [[mw:Help:Extension:ParserFunctions|Help:Extension:ParserFunctions]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Maintenance templates|Iffile]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>gww&gt;Chieftain Alex</name></author>
	</entry>
</feed>