Forum:Multiple IF rows in a Table

Hey,

I'm having a bit of trouble putting together a table template, with parser functions for if certain rows should be displayed or not.

The template is here:.

Basically, the table is a "recipe" to make something, and the last part of it lists each ingredient and the quantity of that ingredient needed. At the moment, I've made it accept up to 6 ingredients. Each ingredient gets its own table-row, and two table-cells (the 1st is the item, the 2nd is the quantity). If the full 6 possible ingredients aren't given, then each un-needed table-row simply isn't displayed. I'm using   to determine if each row should be displayed.

The problem is, when less than 6 ingredients are supplied then template seems to get white-space (newlines I think) for the non-displayed rows. This produces a single row in the left-hand cell (with the text floating in the vertical-center) and 6 rows (as text or blank) in the right-hand cell.

When I try to manually remove the whitespace from the template, the whole table-rows for the ingredients becomes even worse.

Any ideas how to do this properly?

Thank you. :) --Defunc7 21:23, November 11, 2009 (UTC)