Template element (Site)

Applies to: SharePoint 2016 | SharePoint Foundation 2013 | SharePoint Online | SharePoint Server 2013

Specifies, in a WebTemp*.xml file, a site definition that can be used to create websites within the deployment.

  ID = "Text"
  Name = "Text"
  SetupPath = "Text">

Elements and attributes

The following sections describe attributes, child elements, and parent elements.


Attribute Description
Required Integer. Specifies the ID of the site definition. To avoid conflict with IDs that are natively used in Microsoft SharePoint Foundation, use IDs with values greater than 10,000 when you create custom site definitions.
Required Text. Contains the name of the site type, such as STS.
Optional Text. Specifies the relative path in the setup directory that contains files used in the site definition, for example, SetupPath="global".

Child elements

Parent elements


  • Minimum: 0
  • Maximum: Unbounded