Board Thread:Support Requests - Getting Technical/@comment-1536121-20150813051106/@comment-4731443-20150813165111

Well the easy fix would be to not place your IFs on new lines... If you don't want that, this trick seems to work: {| width="100%" border="0" style="border-collapse:collapse" i.e. by adding and on either side of the line break, it will never be interpreted. Of course that adds clutter to your code, so I doubt it's worth having the IFs on separate lines if the idea was to make it more readable.

WieQuadrat wrote:

is there a suggestion to make a dynamic table with dynamic layout base on certain value Well you seem to have that going already. Another approach that would probably be easier to grasp for other contributors looking at your code for the first time would be to make this kind of a "shunting" template, that chooses which other table template to call based on the parameters being passed.

Suppose you have the templates:
 * TableBOT
 * TableBOTSingle
 * TableBOTDouble
 * TableBOTTriple

Your articles remain exactly the same, but when TableBOT runs, it only checks the value of and, using a switch, calls one of the other three templates, which contains the table model that corresponds to that group of units. That way each table model is cleanly separated but the functionality remains the same.