Template type identification