Make template object terminal dependent on selected type