Forum:Infobox loop?

So I'm attempting to create a useful infobox for the Serial Killers wiki. As I also work on the Adult Swim wiki, I copied the source code of an infobox there and changed the headings and information field names to meet the needs of the Serial Killers wiki. But now, the infobox template doesn't show the infobox, but instead says "Template loop detected". Any ideas on how to fix this? --Spencerz 21:21, August 10, 2010 (UTC)

The link to the problematic infobox on the Serial Killers wiki: - —This unsigned comment is by Spencerz (talk • contribs). Please sign your posts with !


 * As the first bit of its code says {{infobox ...... It is trying to call a template called infobox i.e itself currently, so is in a loop. You need to copy the main Infobox (core code) from the template actually called infobox on the swim wiki after give the other infobox (on serial killers) a different name (the one you based it on must have been called something other than just template:infobox by the look of it). so rename the one on serial killers to a more meaningful title (related to its function) and the copy the Infobox code (from swim wiki) to the page called template:infobox (which will now contain just a redirect after moving it). The infobox you currently have sends the input items via the label and data items to the main infobox template to display them (well it would if it existed) - BulldozerD11 22:51, August 10, 2010 (UTC)

Thank you. I did what you said, with renaming the killers infobox and recopying the swim code, and the infobox is rendering now. --Spencerz 15:06, August 11, 2010 (UTC)