Forum:Template - don't want to include rows with no data

Hi,

I have created a template which is suppose to give a quick overview of certain topics. Basically it reads something like this: '{| '! style="width:150px;" |A topic '|info1 '|- '! style="width:150px;" |Another Topic '|info2 '|- '! style="width:150px;" |A third toic '|info3 '|- '! style="width:150px;" |One final topic '|info4 '|- '|}

The info-tags are suppose to be within {} of course.

My problem is that if info 2 e.g. has not been given, then that whole row with Another topic should dissapear while the rest is still visible for as long as their info has been stated.

How do I manage that?

I've tried a number of ways with if-statements but I must be missing something :( Please help...
 * You will need this template. Use the following code:


 * Hope that helps.-- 13:33, June 17, 2010 (UTC)