Difference between revisions of "Template:BlockImage"

From TFC:TNG
Jump to navigation Jump to search
(Changed to check if file exists otherwise use missing block texture.)
Line 1: Line 1:
<includeonly><div>[[File:{{{1}}}.png|160px{{#if:{{{2|}}}|link={{{2}}} }}]]</div></includeonly>
+
<includeonly><div>{{#ifexist:{{{1|}}} | [[File:{{{1}}}.png|160px{{#if:{{{2|}}}|link={{{2}}} }}]] | [[File:No_block_image.png|160px|link={{{1}}}]] }} </div></includeonly>

Revision as of 07:45, 6 December 2019