# Page templates

> Start Docs pages from built-in or space templates, fill in template details such as dates and people, and create, edit or delete your space's own templates with variables.

Source: https://docs.sofiaspace.uz/docs/templates/

Templates give new pages a ready-made structure: headings, tables and checklists that are already in place, plus details such as today's date or the meeting's attendees filled in for you. Sofia Space comes with eight built-in templates, and each space can add its own. This page explains how to create a page from a template, how template details (variables) work, and how space admins build and manage their space's templates.

**Who can do this:** anyone who can create pages in a space (space **Editor** or **Admin**) can create a page from a template. Creating, editing, deleting and saving space templates is for the space's **Admins** (and the person who created the space). Available on every plan.

## Create a page from a template

1. In Docs, open the space and choose **Page** at the right end of the top bar, or **＋ Page** in the sidebar. To create a sub-page, hover the parent page in the tree and choose **Add sub-page**. (The **New page** button on the space's home page skips the template choice and creates a blank page.)
2. The **New page** dialog opens. Under **Built-in templates** or **This space's templates**, pick a template.
3. If the template asks for details, the dialog **Fill in a few details to create this page.** opens. Fill them in (see below) and choose **Create page**.
4. The new page opens in the editor, titled with the template's name. Rename it by editing the title, then write and **Publish** as usual.

The same dialog also offers **Blank page** (*Start with an empty page.*) and **Interactive page** (see [Interactive HTML pages](https://docs.sofiaspace.uz/docs/interactive-html-pages.md)).

A page created from a template is an ordinary page. Changing or deleting the template later doesn't change pages already made from it.

## Built-in templates

| Template | What it asks for or fills in |
| --- | --- |
| **Meeting Notes** | **Date** (required, defaults to today) and **Attendees** (people, optional) |
| **Decision Record** | **Status**: Proposed, Accepted, Rejected or Superseded (required); fills in today's date and you as author |
| **Retrospective** | **Sprint** (required text); fills in today's date |
| **Project Plan** | **Owner** (one person, required); fills in today's date |
| **Requirements / PRD** | Fills in you as author and today's date |
| **How-to Guide** | Fills in you as author |
| **Incident Postmortem** | **Severity**: SEV-1 to SEV-4 (required); fills in today's date |
| **Weekly Status** | **Week of** (required date, defaults to today); fills in you as author |

Built-in templates come in English, Russian and Uzbek. You see them in the language you use the app in.

Built-in templates can't be edited or deleted. To adapt one, create a page from it, change the page, publish it, and save it as a space template (see below).

## How template details work

A template can contain **variables**: placeholders that are replaced when the page is created. There are two kinds.

- **Filled in automatically:** today's date, you (the person creating the page), the space's name, the page's title, or the parent page's title. You aren't asked for these.
- **Asked for:** the dialog asks you to fill them in before the page is created. Each one is one of:

| Type | You enter |
| --- | --- |
| Text | A line of text |
| Date | A date from a date picker |
| Person | One person from the workspace |
| People | Several people |
| Choice | One option from a list (**Choose one…**) |

Required details must be filled in before **Create page** works. For people, use the picker to add someone, **Change** to pick someone else, or **Remove**. People you pick appear on the page as @mentions.

An optional detail you leave empty is removed from the page rather than left as a blank placeholder.

## Save a page as a space template

Turn a page your team already likes into a template for the space.

1. Open the page. It must have been published at least once.
2. Choose **⋯ → Save as template**.
3. Enter a **Template name** and, optionally, a **Short description**.
4. Choose **Save template**.

The template appears under **This space's templates** in the **New page** dialog for everyone in the space. It uses the page's published content. Interactive HTML pages can't be saved as templates.

**Who can do this:** space Admins.

## Create or edit a space template

1. Choose **Page** in the top bar, or **＋ Page** in the sidebar, to open the **New page** dialog.
2. Choose **Manage templates** (top of the dialog; shown only to space Admins).
3. The **Templates** window lists the built-ins (marked **Built-in**) and the space's own templates. Choose **New template**, or **Edit** on one of the space's templates.
4. Enter a **Template name** and a **Short description**.
5. Write the content in the editor. It supports the same formatting as pages; type **/** for headings, tables, panels and more.
6. To add a variable, type **/** and choose **Template variable**, enter a key such as `sprint` or `attendees`, and choose **Insert**. The variable is also added to the **Variables** list below the editor as a text detail.
7. In **Variables**, set each one up:
   - its **key** (must match the key in the content),
   - **AUTO** (filled in automatically; then pick what fills it) or **PROMPTED** (asked for; then pick the type),
   - for a prompted detail, a **Label** shown in the dialog, whether it is **Required**, and for a choice, the options separated by commas (**Option A, Option B, …**).
   Use **+ Add variable** to declare one by hand and the **×** to remove one.
8. Choose **Save**.

Removing a variable from the **Variables** list doesn't remove its placeholder from the content, and the other way round; keep the two in step.

## Delete a space template

1. Open **Manage templates**.
2. Choose **Delete** on the template and confirm.

*Delete this template? This can't be undone, but pages already created from it are unaffected.*

## What you can't do

- You can't edit, hide or delete the built-in templates.
- You can't share a template between spaces. Each space has its own; to reuse one elsewhere, create a page from it in a space where it exists, move the content into a page in the other space by copy and paste, and save that page as a template there.
- You can't create an interactive HTML page from a template, or save one as a template.
- You can't set a default template for new pages in a space.
- Templates have no version history; a saved change replaces the template.

## Related

- [Spaces and pages](https://docs.sofiaspace.uz/docs/spaces-and-pages.md)
- [Drafts, publishing and live editing](https://docs.sofiaspace.uz/docs/drafts-and-live-editing.md)
- [The page editor](https://docs.sofiaspace.uz/docs/editor.md)
