({{, (RefLink[NotebookTemplate, paclet:ref/NotebookTemplate])[nb] 
yields a (RefLink[TemplateObject, paclet:ref/TemplateObject]) that represents a notebook template to be applied using functions like (RefLink[GenerateDocument, paclet:ref/GenerateDocument]) and (RefLink[FileTemplateApply, paclet:ref/FileTemplateApply]).}})

OpenersNotesSection(Spacer1)Details

The notebook nb can be given as a notebook expression, a notebook object, or a string corresponding to a file.

A blank template notebook suitable to be used in (RefLink[NotebookTemplate, paclet:ref/NotebookTemplate]) can be opened in the front end using (RefLink[CreateNotebook, paclet:ref/CreateNotebook])["Template"].

OpenersPrimaryExamplesSection(Spacer1)Examples  (1)

OpenersExampleSection0(Spacer1)Basic Examples  (1)

Generate a (RefLink[TemplateObject, paclet:ref/TemplateObject]) from an existing notebook:

NotebookTemplate["ExampleData/BasicTemplate.nb"]

Apply the template:

TemplateApply[%,<|"author" -> "Sarah Miles"|>]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[GenerateDocument, paclet:ref/GenerateDocument])  ▪  (RefLink[CreateNotebook, paclet:ref/CreateNotebook])  ▪  (RefLink[FileTemplate, paclet:ref/FileTemplate])  ▪  (RefLink[TemplateObject, paclet:ref/TemplateObject])  ▪  (RefLink[TemplateApply, paclet:ref/TemplateApply])  ▪  (RefLink[XMLTemplate, paclet:ref/XMLTemplate])  ▪  (RefLink[NotebookGet, paclet:ref/NotebookGet])  ▪  (RefLink[NotebookImport, paclet:ref/NotebookImport])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Notebook Document Generation, paclet:guide/DocumentGeneration])}, {▪(RefLinkPlain[Working with Templates, paclet:guide/WorkingWithTemplates])}, {▪(RefLinkPlain[Text Generation, paclet:guide/TextConstruction])}})}})

({{(Spacer1), ({{(Spacer1)Related Links}, {(WebLink[DocumentationFooterIconsRelatedLinks-EIWL.png(Spacer1)An Elementary Introduction to the Wolfram Language, https://www.wolfram.com/language/elementary-introduction/42-string-patterns-and-templates.html])(WebLink[: String Patterns and Templates , https://www.wolfram.com/language/elementary-introduction/42-string-patterns-and-templates.html])}})}})