Talk:Template Troubles

I'm no expert when it comes to templates but... I'm about to start working on a wiki project that relies heavily on tables but first I want to make a template to ease my work. In their most basic form the tables would look like in Example 1 but more often than not they'd be a tad more complex, like in Example 2. With Template:IE I can emulate everything from those examples with the exception of column 1, I don't know how to expand it over more than 1 row like in Example 2. Any suggestions from someone more experienced on how to get this right? by Mjoll 15:16, March 12, 2012 (EDT)

Example 1

Example 2

Template (half working)


 * First thing you need to do is shy away from using the default argument names (eg., , ...) and define your names (eg. , , ...) . At this point you could add another argument named  .  This way, you can set |col 1 span = 3 on your calling page and add  ...  ... in your Template:IE.  The trick with this is to make sure that you set |col 1 = 0 on the next two lines or it will break and fail. ShoeMaker 15:47, March 12, 2012 (EDT)


 * How would the finished template look like? I tried to make the changes you suggested but I only made it worse. by Mjoll 14:04, March 13, 2012 (EDT)


 * You did just fine, I only moved a couple things around so that they would be in the correct order.. Tests below. ShoeMaker 14:55, March 13, 2012 (EDT)


 * There, after much tweaking and a change from wikitable to html table coding, it seems to work for what you want.. ShoeMaker 14:55, March 13, 2012 (EDT)


 * Excellent. Thank you Technical, that's exactly what I was looking for. by Mjoll 15:51, March 14, 2012 (EDT)