Help:Hide empty rows in table

Sometimes you are working with forms where not every field gets filled in. Maybe you would like to hide those fields in the display.

Here helps the #if parser function in the sense of "show only if not empty".

For this example, we are showing the results in a table. We hide the entire row of the corresponding field (including the heading to the empty field).

The table row how it usually looks within the template:

! Form field name:
 * |Has property xy::

The same table row, but this time only showing when not empty:

See how the #if function is always embraced in double brackets:

Escaping table marks
The marks for the table structure need to be escaped with template calls within those brackets:  and

The template ! then says "|" and the template !- says "|-".