Forum:Need help regarding infobox code (multiple columns, cells)

Here we are again, this time we need some help regarding a minor problem with our infobox templates. At first they were pretty old, we simply had an entire line of code for each template. Then we got someone to help us create a meta template, which works fine so far. It also includes columns, but however, we only are able to have two columns. And nor do the current columns have cells (rather, they're one big extended cell).

Now my basic question comes down to this, would anyone be able to help us? We'd like to have extra columns and these columns should each exist out of different cells.

Also, we use some sort of datarow template for the content, somehow copied them from the Fallout wikia, there are datarows there with more columns, but we have no idea how to make them work at our wikia.


 * Infobox meta template: http://jakanddaxter.wikia.com/wiki/Template:Infobox
 * Datarow template: http://jakanddaxter.wikia.com/wiki/Template:Datarow
 * Original datarow template: http://fallout.wikia.com/wiki/Template:Datarow
 * An example of an infobox with columns; http://jakanddaxter.wikia.com/wiki/Eco_Rocket_Jump

Much appreciated if anyone has some idea, thanks! -- Light Daxter |  Talk  18:43, April 9, 2010 (UTC)

I'm starting to think we need to look for a new template code, it's fairly possible we'll just go and copy the very original infobox code from the Kingdom Hearts Wikia (the person who copied the infobox templates in the first place got them from there) and theirs are pretty decently advanced. However if anyone has a way to fix our current problem that'd be much easier. -- Light Daxter |  Talk  20:22, April 13, 2010 (UTC)


 * The "datarow" template doesn't work because there's no parameter in your meta infobox template that allows them to work. Rather than using a template like this, I think you should just add more rows and more columns to your meta template. An example of what I mean is the infobox template on Wikia Templates. This is a simpler system if you don't need/want to create each infobox template by itself. The 888th Avatar   (talk)  09:15, April 14, 2010 (UTC)

Thing is that I don't know anything about template code and nor do the other admins. It'd be nice if someone could help us out here. And that link to the other infobox code isn't much help either, does it do templates and can we change it in such a way that'll it look exactly like our current ones? -- Light Daxter |  Talk  20:01, April 16, 2010 (UTC)


 * I looked at the meta-infobox code and it does look overly complicated. However, it looks like at some point someone removed some functionality from your datarow templates that makes it harder to do what you want to do (add more columns). I believe you need to add back the colspan changing support to your datarow template as a start. I'll take a look at it in a day or two and try to mockup some example changes, maybe in a new datarow2 template. -- Fandyllic  (talk &middot; contr) 4:18 PM PST 17 Apr 2010

The other administrator who works with me confirmed that was it (but sadly he still didn't know what to do). Would be great if you found a way out! -- Light Daxter |  Talk  10:24, April 18, 2010 (UTC)


 * Okay, I think I got it to work. I modified w:c:jakanddaxter:Template:Eco Power so it should support up to 3 rows of upgrades/cost, but I had to modify w:c:jakanddaxter:Template:Datarow and add a w:c:jakanddaxter:Template:Datarowplus to support the additional rows. Take a look at  w:c:jakanddaxter:Template:Eco Rocket Jump and see what you think.
 * Hopefully someone understands the changes I made so they can be propagated to other infobox templates where needed.
 * The same concepts should be usable for more columns, but probably would require more datarow templates. -- Fandyllic  (talk &middot; contr) 3:52 AM PST 21 Apr 2010