Attempts to use this markup do not work.
<gallery>
{{#ifexist: File:{{PAGENAME}}.jpg | exists | Not Exists }}
</gallery>
Attempts to use this markup do not work.
<gallery>
{{#ifexist: File:{{PAGENAME}}.jpg | exists | Not Exists }}
</gallery>
Wait, sorry, that was the wrong task... I'm pretty sure this is a dupe of something, but I can't find the right task now.
At any rate, the workaround is to use #tag.