Template:Which

Usage
If there are six fields, skip fields "image4=" and "name4="