Board Thread:Support Requests - Getting Technical/@comment-5111231-20170131013238

Hi, I'm trying to compress all the messy code currently used across many navboxes on the Disney Wiki into one easy template to apply to them. The problem is that while I've been able to get what I want inside the groups and title headings, for some reason whenever I try to add in more optional groups the navbox suddenly expands leaving an empty space at the bottom that is just frustrating. I would like to make it so that the groups are optional to fill in and won't appear when there's nothing filled in, but the problem is the extra space that appears when I add in coding for more than a few groups. This is what I have so far: and this is what I want to get it to look like:, except that I also want to apply collapse within the group headings like in the former example. 