Board Thread:General Coding Help/@comment-34804319-20180727121536

Hello community, I have written an infobox script for my wiki to display vehicle information in a cleaner and better organised way than our old infoboxes, however I can't seem to get it to display correctly. The template is located at the link, the first image shows how it should look, and the second shows how it renders now. Can one of you fine ladies or gents advise on what I am doing wrong, or go into the template and correct the mistakes I am making? I'll admit it's been a while since I have coded a template in excess of 200 lines so I may have gone to quickly and missed something.

Thank you in advance, any and all help is greatly appreciated!

https://gran-turismo.wikia.com/wiki/Template:Infobox/CarNew 