Forum:Template...how to create "if" parameters?

Hi there!

I need some help with this template: http://it.squadraspecialecobra11.wikia.com/wiki/Template:Auto

How can I edit parameters in order to do them "if parameter"? I mean...in order to make appear that parameter only if I write something in it!

I copied the infobox template and tried to edit it in order to create my new template but I wasn't able to do it!

Thank you for your help! Cento93 21:39, June 11, 2011 (UTC)

Mythrun 21:42, June 11, 2011 (UTC)

I didn't understand...can you edit only a parameter of my template? I will try with the other! Thank you!Cento93 21:45, June 11, 2011 (UTC)


 * Is that what you wanted? To do that, just add a | before the }}}. Mythrun 21:58, June 11, 2011 (UTC)
 * I would that all the line of the absent information disappear! For example...if i have nothing to write in the parameter, also the title of the line (Episodi all'attivo) have to desappear! --Cento93 22:04, June 11, 2011 (UTC)
 * There, it works now. Mythrun 22:33, 6/11/2011
 * I've made a few changes to that template to put the  |-  in the proper place.
 * The way you have the template now, when the template is called without 1 of the parameters it generates 1 empty table row. I don't know if that's what you want. If that is what you want, then you have to add a non breaking space& nbsp; (remove that extra space) to all those empty fields, for example:
 * Would become
 * You can also make the whole table row disappear with:
 * The way you have the template now, when the template is called without 1 of the parameters it generates 1 empty table row. I don't know if that's what you want. If that is what you want, then you have to add a non breaking space& nbsp; (remove that extra space) to all those empty fields, for example:
 * Would become
 * You can also make the whole table row disappear with:
 * You can also make the whole table row disappear with:
 * You can also make the whole table row disappear with:
 * You can also make the whole table row disappear with:
 * You can also make the whole table row disappear with:


 * This is rubish! I give up on trying to format code in this crap of forum. Please edit the page to see my code.