Board Thread:Support Requests - Getting Technical/@comment-30922060-20190604200213

Hey everybody! I'm back again. This time I've tried to import and modify this template from the HP wiki. The original template created links for various adaptations/media related to the half-blood prince; the modified version on my wiki creates a link to any book in the series. Once I thought I had completed the modification, I started testing it out and quickly ran into an issue.

There are no issues when inserting references into the article itself. However, there is an issue when I put it into a specific part of the infobox. You can view various ways I've inserted the same reference while using this template here. Each reference is exactly the same, except for #3. As you can see, using the template at the start of the tag (specifically after the first date in the lifespan box) somehow changes the reference into a scrollbox. This problem vanishes if you do what I did in ref #3, and type something before the template.

The three templates being used here are: Template:B, Template:AnimalCharacter, and Template:Reflist.

I cannot for the life of me figure out what's happening here, and I've been aimlessly fiddling with the template code to no avail. I figure there must be some weird interaction happening between two or three templates, but being an amateur coder at best, have no idea what it is. If anyone could shed some light on the situation, I would be immensely grateful. 