template name to id