Forum:Parser Issue

Hi, I think I have some sort of parser issue here. Maybe someone can help me figure out whether it's a bug or a feature. My example uses a very simple table. Just one row and three columns (actually its five columns, but that is part of the problem).

Here is the table I was talking about: w:c:mafiawars:Template:TableBug

You probably notice that the last column shows some strange behaviour. If you look at the html output of the parser, you'll notice the following code within the td-tag for dolor: dolor

It was generated using the following code:

From my understanding, the shouldn't be there.

If I seperate the two consecutive ifs with an additional column, the problem is avoided.

Output: w:c:mafiawars:Template:TableNoBug

As far as I understand the wiki parser, it interprets two (or more) consecutive ifs as one empty line and generates the code. However, it is not always possible to avoid this. Do any of you know a solution for this issue? -- Owed 08:22, April 22, 2010 (UTC)


 * The brutal thing is that when you put the #if function on a new line, it treats it as a line break. If you don't have the line break, like...


 * ...it doesn't break. But yes, if you were to write a complex infobox template with lots of #if's, then that solution is just terrible. My suggestion is to use comments to generate some space, like...


 * An example where these HTML comments are extensively utilised can be found on this big infobox template. The 888th Avatar   (talk)  09:06, April 22, 2010 (UTC)
 * Thanks. That really helped. -- Owed 09:20, April 22, 2010 (UTC)