Forum:Self repeating template - HTML problem ?

I have a problem here with a template repeating itself in a loop within its documentation and causing the Side bar to jump right to sit over the main part of the page. - See here I think its to do with the <div, <span or some other HTML code (most HTML is double dutch to me, even though wiki code is really 'hidden' HTML) an earlier one was fixed by Ubberfuzzy for me but i cannot remember how, or which template it was. (the original code is from wikipedia, which is more tolerant to (bad) HTML i think i read someware) - BulldozerD11 00:10, April 26, 2010 (UTC)


 * I would comment out  and fix the template before worrying about a loop. I commented out   on w:c:tractors:Template:Template_category and the template was still screwed up. Maybe when you fix the template, the doc problem will go away or be less bad. --  Fandyllic  (talk &middot; contr) 4:59 AM PST 27 Apr 2010


 * Thanks for suggestion Fandyllic. Not a big problem yet, as i've just not bothered to use it much as its faulty. The worst bit is the sidebar jumping over the main body structure. I think its Probably the <  table  > structure within it not closed someware or those < div things.  - BulldozerD11 11:52, April 27, 2010 (UTC)


 * I have fixed the template, but using  borks it, so that template needs to be looked at. You're right - basically, whoever made the template decided for some reason that they wouldn't need to close any of the tags, and someone else also unnecessarily added these div tags at the start and end. :P  The 888th Avatar   (talk)  23:29, April 27, 2010 (UTC)


 * Thanks Avatar - I'm cautious of messing with the HTML after i caused problems in a load of templates early on that were traced back to the internal comments, spaces & nl feeds i added & commenting the PP-template & sticking it outside the noinclude block. - Thanks again for looking at it - BulldozerD11 01:36, April 28, 2010 (UTC)


 * On further testing with doc page active (now severs back up) looks like example 3 is the problem (that shows <tr & <td bits when displayed. One of the option sub routines within the template must be faulty - BulldozerD11 15:51, April 28, 2010 (UTC)