Add conditional base template.