
There's... a lot of broken HTML tags mixed with wiki code in this. Were you by any chance removing sections or lines <!-- IMPORTANT COMMENT CODE --> sections from the template?
This particular template mixes a lot of wikitables with HTML tables in tables in tables. (Which looks nice in your browser, but is a nightmare to keep track of in code).
The only things I could really suggest at this point because I'm not the one who made this template is to either copy it over fresh and add your edits back in piece by piece in the appropriate sections or to try a simpler template.
Editing in a text editor like Notepad++ set to HTML mode for highlighting and syntax may help too! That way, you can trace the tags back to where they should start/end visually.
This particular template mixes a lot of wikitables with HTML tables in tables in tables. (Which looks nice in your browser, but is a nightmare to keep track of in code).
The only things I could really suggest at this point because I'm not the one who made this template is to either copy it over fresh and add your edits back in piece by piece in the appropriate sections or to try a simpler template.
Editing in a text editor like Notepad++ set to HTML mode for highlighting and syntax may help too! That way, you can trace the tags back to where they should start/end visually.