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

Follow-up
Sorry for the late reply (a lot of thanks to Fandyllic, it really works great!). However the template only allows up to three columns and we need five at one template. After a lot of fiddling around ourselves we finally came to the conclusion we couldn't do it.

A little extra information, we need one row with five columns (currently we have one row with multiple rows and columns, although I assume it is capable of only one row we don't know how). I don't know how many columns it can handle though.

So to get down on it, it'd be nice if someone (Fandyllic again?) could fix this for us and just allow one row and five columns (and if possible include the If: function for the |reload: row). Sorry for the inconvenience, it's such a hassle to have crappy infobox code. -- Light Daxter |  Talk  22:41, April 24, 2010 (UTC)

p.s. I forgot, we need this extra tidbit of fixed code at;


 * http://jakanddaxter.wikia.com/wiki/Template:Airship_Weapon

-- Light Daxter |  Talk  22:43, April 24, 2010 (UTC)


 * Can you give an example of this template in use? -- Fandyllic  (talk &middot; contr) 1:25 AM PST 25 Apr 2010

Well it doesn't exist yet, we have no idea how to make five columns.

An example of an article where we need it (feel free to test around); -- Light Daxter |  Talk  07:49, April 25, 2010 (UTC)
 * http://jakanddaxter.wikia.com/index.php?title=Ground_Attack_Rocket


 * Okay, can you tell which info needs to be in the columns. I can't begin to guess what stuff you want in the 5 columns. -- Fandyllic  (talk &middot; contr) 10:51 PM PST 26 Apr 2010

It's a minor detail, for all I care you just fill in 1, 2, 3, 4, 5. I'll add the correct info later on, no need to give you any more unneeded work. -- Light Daxter |  Talk  23:00, April 26, 2010 (UTC)