Forum:Unwanted new 'p' and 'br' tag added into last cell

I have this code in template:

when param 1,2,3 is defined(param 5,6 is empty/null), wikia renders a.svg, b.svg and c.svg correctly

however, immediately after anchor element of c.svg,    is added into the third cell generating new line.

I don't want the new line. How can I remove it? Thx for any advice. —This unsigned comment is by Kevinlaw (talk • contribs) 12:35, 7. Jul. 2011. Please sign your posts with Kevin Law 12:50, July 7, 2011 (UTC)!


 * Have you tried removing the blank lines in your code? --Weas-El ✉ 12:41, July 7, 2011 (UTC)

Yes, but still no luck.I believe param 4 & 5 is generating the new lines, so I tried stacking all #if without line break too, but the layout is broken that way:

Kevin Law 12:50, July 7, 2011 (UTC)


 * Would you give us a link to your template, please? -- Weas-El ✉  13:03, July 7, 2011 (UTC)


 * template in http://fishhunt.wikia.com/wiki/Template:Sandbox01
 * sandbox for testing in http://fishhunt.wikia.com/wiki/Sandbox01


 * notice the "D2" icon in infobox at right sideKevin Law


 * Every icon in your template that is not displayed will leave a line break. If you display all five icons, all is well. But I haven't been able to find a work-around yet. Maybe DIVs? -- Weas-El ✉  13:30, July 7, 2011 (UTC)


 * The last thing I can think of is to use multiple span instead of single row table. If there's no workaround then nevermind. thx for your help =)


 * This has been fixed. A combination of  and linebreaks must be used. --D. (talk · contr) 13:35, July 7, 2011 (UTC)


 * That looks much easier than what I was trying. ;-) If you should encounter other problems with your template, you'll find and example of a similar structure with DIVs instead of a table here. -- Weas-El ✉  14:05, July 7, 2011 (UTC)


 * Wow, thx for the fix D-day. Thank you too, Weas-El. Your idea of hiding element may be useful in future, because I can change css visibility:hidden to display:none. Nice! =)
 * Weas-El, in your template you have . Is the Template: part on purpose?
 * So... After taking a look at the template I think the almost correct way to make it work is:
 * So... After taking a look at the template I think the almost correct way to make it work is:
 * So... After taking a look at the template I think the almost correct way to make it work is:
 * So... After taking a look at the template I think the almost correct way to make it work is:

 Fandyllic (talk &middot; contr) 7 Jul 2011 2:22 PM Pacific


 * @Nidek: The namespace "Template" in the links was indeed overhead, I removed it. Thanks. -- Weas-El ✉  21:44, July 7, 2011 (UTC)

I've made a similar template which uses "parameter rows", you can see it here. 22:06, July 7, 2011 (UTC)