Template:Infobox Ferret: Difference between revisions

Add fallback of unknown image when ferret is not existed yet
Replace the code with gorasuhl solution
Line 12: Line 12:
}}
}}
<tr><td colspan="2" class="infobox-centered">
<tr><td colspan="2" class="infobox-centered">
{{#ifexist: File:{{{image}}} | [[File:{{{image}}}|192px]] | [[File:Unknown_Mugshot.png|192px]] {{#if:{{#var:noCategories}}||[[Category:Ferret lacking infobox images]]}}}}
{{#ifexist: File:{{{name}}}_Mugshot.png | [[File:{{{name}}}_Mugshot.png|192px]] | [[File:Unknown_Mugshot.png|192px]] {{#if:{{#var:noCategories}}||[[Category:Ferret lacking infobox images]]}} <br><br> Missing: [[File:{{{name}}}_Mugshot.png|192px]]}}
</td></tr>
</td></tr>
{{Infobox section|General details}}
{{Infobox section|General details}}