Board Thread:Support Requests - Getting Technical/@comment-26334069-20170615181809

I'm using the template system to dynamically build the table headers. So something like:

{| class="article-table" |-

For example, if parameter "header1" is set, then we include the template "Header1".

Contents of template "Header1" are:

! Column Header 1

It generally works. However... if say parameters header2 and header3 are empty, I'm left with two blank lines which renders as an empty   and messes up the style of Column Header 1.

I've tried putting all the if parser functions on a single line, with an empty line at the start of each of the templates. When using subst: on each of the if parser functions, and looking at the substituted code I can see the desired code I want to achieve. However, the page actually renders the templates as text (it ignores the ! character if it's not the first character).

Can anyone provide some direction on how to solve my issue? 