Board Thread:Lua Help/@comment-26942307-20151128194431

I have a question, today I uses 10 different infobox layout, and I'm thinking on converting it to Lua, and are now wondering if it would be possible to have all the different layout placed in the same lua infobox, so it chooses the right layout depending on the first parameter, and if so how do I do it, so I don't have to create 10 different infoboxes again

ex

displays 1 layout

displays an other layout 