New template style with if conditions