Forum:Expansion depth limit workaround

Pretty sure I read somewhere that the 'Expansion depth limit' is 40. I need to do one that has 45. Is there anyway to get this to work, without encountering the EDLE error? I've tried using templates and subst:templates, and couldn't get either way to work.

Check here: http://doctor-who-collectors.wikia.com/wiki/Template:DVD_box Tardis1963 11:00, June 12, 2011 (UTC)


 * Instead of doing IF X3 ( X1 | X2 | X3 ) ELSE ( IF X2 ( X1 | X2 ) ELSE ( X1 ) ) try doing IF X3 ( X3 | ) IF X2 ( X2 | ) IF X1 ( X1 ) (I've simplified the syntax notation for better understanding. --Ciencia Al Poder (talk) -WikiDex 17:27, June 12, 2011 (UTC)

Are those if's all separate? 'Cause I'm pretty sure it won't recognise more than one if statement; it'll only read the first one. Tardis1963 00:41, June 13, 2011 (UTC)


 * I think Ciencia is suggesting just do a single if test for each item and only show it if the param is used. Also, if you're getting near the expansion depth limit, your probably doing something overly complicated that is crying out for simplification. -- Fandyllic (talk &middot; contr) 12 Jun 2011 6:01 PM Pacific

Take a look at the link above. I can't think of any way to simplify it, maybe you can? And I don't really understand what you mean. Atm, it basically says. How would I get that to work for 45 episodes? Tardis1963 01:11, June 13, 2011 (UTC)


 * Well, I'm not sure why you want to do what you're doing. Why can't you just . Or just have a simple   and tell people to put
 * -- Fandyllic (talk &middot; contr) 12 Jun 2011 6:21 PM Pacific

If I can't get the 45 to work, I'll just make it 40 and (because there's only one page that will need 45) put a separate template on that page with.

I need to have it my way, 'cause if there's an episode 2, it means there's an episode 1 as well, but there might be an episode 3. It is pretty confusing.

And I'm pretty sure with multiply if statements like that, it would only read the first one and ignore the rest; I've tried similar ones. Tardis1963 01:33, June 13, 2011 (UTC)


 * You're over-thinking it in my opinion. Sometimes what seems logical is not necessary. Maybe you should consider the following:
 * Trying to account for a possible next episode is kind of silly. Does the code above make sense to you? -- Fandyllic (talk &middot; contr) 12 Jun 2011 11:07 PM Pacific
 * Trying to account for a possible next episode is kind of silly. Does the code above make sense to you? -- Fandyllic (talk &middot; contr) 12 Jun 2011 11:07 PM Pacific
 * Trying to account for a possible next episode is kind of silly. Does the code above make sense to you? -- Fandyllic (talk &middot; contr) 12 Jun 2011 11:07 PM Pacific
 * Trying to account for a possible next episode is kind of silly. Does the code above make sense to you? -- Fandyllic (talk &middot; contr) 12 Jun 2011 11:07 PM Pacific
 * Trying to account for a possible next episode is kind of silly. Does the code above make sense to you? -- Fandyllic (talk &middot; contr) 12 Jun 2011 11:07 PM Pacific
 * Trying to account for a possible next episode is kind of silly. Does the code above make sense to you? -- Fandyllic (talk &middot; contr) 12 Jun 2011 11:07 PM Pacific

It sorta does, but I'm still not sure if it would do everything I want it to do. I've settled on another system, that works on a switch that says how many episodes to display based on. It might not be ideal, but the one extra line to add in the template is worth it for the ease of creating the code for it. Tardis1963 06:44, June 13, 2011 (UTC)


 * That's good if it works for you. I was going to suggest using  awhile back, but it wouldn't have done as much of the conditional stuff as you seemed to want. -- Fandyllic  (talk &middot; contr) 13 Jun 2011 12:58 PM Pacific