Thread:Glflegolas/@comment-25330335-20160814025743

Alright, I have a slightly difficult coding problem that I really don't have the knowledge to solve. Basically, I want to add the image of the spawn egg of each mob/NPC to their infobox. As I was thinking about how to do this, I thought about the Bar template, and wondered if I could have each page create the filename in a template, that way I would only need to have the images uploaded, and the template reference in the Infobox code. I have all the egg images already, so I just need the code. I added the reference to the Egg template in the NPC infobox, exactly how I want it to work. However, I was not able to create the template so that it worked. I uploaded File:Spawn Dorwinion Elf.png as a test subject. If you would be willing to look at it and see if you could make it work, that would be amazing. If you would be so kind, please provide a short explanation of how you fixed it, so that I know for future templates.

Thanks,

 