%[if %("%id=imagesource%" == "local")% ]% %[if !edit]% %[if %("%id=square_thumbs%" == "irregular")% ]% %id=imagealt% %[endif]% %[if %("%id=square_thumbs%" == "square")% ]% %id=imagealt% %[endif]% %[endif]% %[if edit]%
%id=imagetitle%
%image% %[endif]% %[endif]% %[if %("%id=imagesource%" == "warehoused")% ]% %[if edit]%
%id=imagetitle%
%[if %("%id=edit_thumbs%" == "showthumbs")% ]% %[endif]% %[endif]% %[if !edit]% %id=imagealt% %[endif]% %[endif]%