Create template: R from sort name/ambiguous/doc