Template:Skin Base Data Row

Use the following:

This template hides all the messy row creation logic. The Title_Optional has precedence over the Title and will cause an Template:Optional_Data_Row to appear. If the Title_Optional is empty a simple Template:Data_Row will appear.