Thread:TheRealPella/@comment-26942307-20151019175403/@comment-15636815-20151020142042

I like the thought pattern there. Unfortunately, wikitext doesn't have a way to do loops.

Here's one way to make it work, though. Build two templates. One is a nested template that builds one blank cell. The other is a wrapper template; pages like Fifth Station will call the wrapper, and the wrapper will call the nested as many times as needed. So, for example:

|-

|style="border:0;"|

Written this way, the code resembles a do-while loop. calls  once ("do"), then tests to see whether a condition is met ("while"). If the condition is not met, the wrapper calls for another cell. The wrapper template can be modified to create as many cells as we need in a line.

Obviously, this is clunky, and I'm sure there are other ways to do it. Eventually, we'll probably convert all our templates to Lua. This will be really easy then, since Lua is a full scripting language that includes actual loops.