Board Thread:Support Requests - Getting Technical/@comment-4904721-20130409064510

Hello! I am trying to make a template that incorporates a  function to make expandable lists. The problem I'm having is that there is a lot of white space if the whole list is not used. Here's what I have so far:

Click "expand" to see full list

Result: Click here to see it in action in my sandbox

Thing is, I like how it looks now, but I want it so if you only use say 6 items, that it doesn't give a new link for the remaining 14... can anyone help?

PS - I'm not very familiar with the coding. I suspect there is a way to make it change list sizes depending on the number of items stuck in the template, but I have no idea how to do that.

Here's where I'm working on it: Template:Expand  