Forum:Table help

I need help with my table template. I want to make it so that you can put up to 20 images/descriptions into the table, but it won't have unnecessary boxes if you put less than 20.

I know that it is possible to do this.


 * templates disable where adding unwanted category --

Notice how:   makes this appear:

  makes this appear:

Notice how "The editor who added this tag believes this page should be cleaned up for the following reason" is excluded if you don't put anything for. So basically, I want my template to be able to hold up to 10 boxes for each column (20 boxes total), without having extra boxes that I don't need. --Posted by Pikamander2   (Talk)  at 15:21, 6 June 2009 (UTC)

Discussion
Have you tried to use simple wiki tables instead of a template? --Ciencia Al Poder (talk) -WikiDex 15:29, 6 June 2009 (UTC)
 * Yes, and it works. But I want to use a template for convenience, and I'm 99% sure is possible to do this. --Posted by Pikamander2   (Talk)  at 15:31, 6 June 2009 (UTC)
 * I cant help you im unable to understand what you want your explanation is complicated, can you just put how it should display normaly and how it should display if X is missing? --

If I wanted to put six things into the table, this should happen: Not this: I want to be able put up to 20 things into the table (via use of template) without having the unused spaces appear on the table. --Posted by Pikamander2   (Talk)  at 16:43, 6 June 2009 (UTC)
 * so if we take the image is the important variable your table that can hold up to 20 images will be:


 * You will need to copy ! to your wiki --
 * Thank you. It works perfectly. --Posted by Pikamander2   (Talk)  at 23:14, 6 June 2009 (UTC)
 * I take that back. Is there a problem with the template, or am I just doing something wrong? --Posted by Pikamander2   (Talk)  at 23:25, 6 June 2009 (UTC)


 * This is weird... The table refuses to recognize the - in |-, so it makes a new cell containing a single "-" instead of a new row... 01:40, 7 June 2009 (UTC)


 * Ok, it's fixed, although I still don't understand why the table refused to work properly when I tried to remove some unneccesary spacing. 01:59, 7 June 2009 (UTC)
 * Thank you. Now it works perfectly. --Posted by Pikamander2   (Talk)  at 02:43, 7 June 2009 (UTC)
 * Wonder if the rules are changing? or im mixing ideas and becoming paranoid for nothing..., any way if you are interested i have corrected my code, add the Noinclude foo thing if you are interested on seeing that. A difference between my code and ose's code is that mine are independent blocks while ose's are a chained ones, so  5 and 6 will not show because there must be something on 3 --