Board Thread:Support Requests - Getting Technical/@comment-12409875-20140226170045

Okay, so I'm working at a wiki for a Collectible Card Game and am looking to redo the layout so that one template can be used for all the info one a single page. The thing is, is some cards will need a table, while others don't; plainly put, the tables wolud need to be optional. I thought I had a solution, but am currently having problems with the following code:

Paste Bin

My goal was to wrap the table in an If Statement, so that it would only appear if the LeaderBonus attribute was present. It does work, however, 'border="1" class="article-table" style="width: 95%; margin: 2% auto 2% auto;"' is still rendered into the page. (See this  for an example).

Is there any way to get that text to render if, and only if, the table is present? I think that putting that line inside a template and then starting the table off like '{|' would achieve what I'm looking for, but it'd call for a lot extra templates. Any ideas? 