Create template: Main if exists/doc