Wikia

Community Central

WatchlistRandom pageRecent changes

Requesting help with very complex infobox coding

63,506pages on
this wiki

Forum page

Forums: Index Support Requests Requesting help with very complex infobox coding
Wikia's forums are a place for the community to help other members.
To contact staff directly or to report bugs, please use Special:Contact.
Note: This topic has been unedited for 99 days. It is considered archived - the discussion is over. Do not add to unless it really needs a response.


Hi there, I'd like to request support with the coding of an infobox template, although i warn you that this is very complex.

In SporeWiki, we'd like to create an infobox meta-template (w:c:spore:Template:Infobox/new) that combines one code on SporeWiki (w:c:spore:Template:Infobox) with anothe from one of my other wikis, Jak and Daxter wiki (w:c:jakanddaxter:Template:Infobox).

The new cde is essentially the same as the Jak and Daxter wiki's code, but the variables have been made easier using Semantic Forms' arraymap. The code is as follows:

{{#arraymap:1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,
56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,
84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,
109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,137,138,
139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,
160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,
181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200|,|number|

Now, that means that anywhere "number" is inserted, one of those numbers will appear. To explain this better:

{{#vardefine:ibR1Lay|{{#ifeq:{{{group1|@n}}}|@n|{{#ifeq:{{{image1|@n}}}|@n|{{#ifeq:{{{label1|{{{label1-1|@n}}}}}}|@n|{{#ifeq:{{{content1-1|@n}}}|@n|0|c}}|l}}{{#ifeq:{{{label1-2|@n}}}|@n|{{#ifeq:{{{content1|{{{content1-2|@n}}}}}}|@n|0|c}}|l}}{{#ifeq:{{{label1-3|@n}}}|@n|{{#ifeq:{{{content1-3|@n}}}|@n|0|c}}|l}}{{#ifeq:{{{label1-4|@n}}}|@n|{{#ifeq:{{{content1-4|@n}}}|@n|0|c}}|l}}|i}}|g}}}}<!--

-->{{#vardefine:ibR2Lay|{{#ifeq:{{{group2|@n}}}|@n|{{#ifeq:{{{image2|@n}}}|@n|{{#ifeq:{{{label2|{{{label2-1|@n}}}}}}|@n|{{#ifeq:{{{content2-1|@n}}}|@n|0|c}}|l}}{{#ifeq:{{{label2-2|@n}}}|@n|{{#ifeq:{{{content2|{{{content2-2|@n}}}}}}|@n|0|c}}|l}}{{#ifeq:{{{label2-3|@n}}}|@n|{{#ifeq:{{{content2-3|@n}}}|@n|0|c}}|l}}{{#ifeq:{{{label2-4|@n}}}|@n|{{#ifeq:{{{content2-4|@n}}}|@n|0|c}}|l}}|i}}|g}}}}

Notice how the former is identical to the latter? Essentially, I wouldn't need to insert {{{group1}}}, {{group2}}}, just {{{groupnumber}}}, as you can see on SoreWiki's infobox code.

But there is an issue, as you can see from Infobox/new on SporeWiki's documentation, that the infoboxes aren't wrking. I can't identify this issue, however.

Is there anyone who feels they will be able to do so?--Technobliterator 15:58, February 13, 2012 (UTC)

If there isn't a total codegeek at the normal users out there, try contacting staff. They got some true whizzkids there, as well as core programmers ;)
See the problem is, often when I've asked staff for help I've been told they can't put in the time needed for this to work. So I don't know if asking wikia staff is a good option in this case.--Technobliterator 20:44, February 13, 2012 (UTC)
You have to close your arraymap with }}. Rappy 21:03, February 13, 2012 (UTC)
I've closed it at the end of the page using |}}...is that right?--Technobliterator 11:58, February 14, 2012 (UTC)

Latest Photos

Add a Photo
7,469photos on this wiki
See more >

Recent Wiki Activity

See more >

Around Wikia's network

Random Wiki