# 模板（Templates）

### 理解模板

模板（Templates）是 Anytype 中最受欢迎的工作方式之一，可以帮助扩展和个性化你创建对象的流程。使用【模板】，你可以：

* 为某些对象类型自定义你想要的【布局】和【关联】
* 每次添加新的【对象】时，自动重复使用这个相同的结构

【模板】基于【类型】保存，每个【类型】可支持多个【模板】。例如，你可以为学术、小说或非小说等不同种类的图书设置不同的【模板】。

### 如何创建模板

添加【模板】有以下三种方式：

1\) 导航到【类型库】 → 单击要创建【模板】的【类型】 → 单击 + 开始创建新模板 → 给你的【模板】命名并添加【关联】和格式 → 【模板】会自动保存

2\) 如果你正在一个【对象】中，并想将你的工作保存为【模板】，可以这样做：点击右上角的 `···` → 点击 + 用作模板，你的内容就会自动保存为这种【对象类型】的新【模板】。

3\) 如果你正在一个【对象集合】或【集锦】中，并且想创建或编辑模板，可以这样做：\找到【集合】或【集锦】视图中右上角的 `创建|▾` -> 点击 `▾` 按钮打开模板样式。然后使用 `+` 按钮创建一个新模板，或者点击模板按钮右上角的 `···` 然后选择 `编辑模板`、`创建副本` 或者 `删除`。

### 使用和管理模板

根据你创建新对象的方式，要么会自动应用默认模板，要么会要求你自己选择一个模板。

<figure><img src="/files/HhOIsufq6rpFkS5CR1BK" alt=""><figcaption><p>选择模板</p></figcaption></figure>

你还可以通过【类型库】为每种【类型】选择默认模板，或者为每个【对象集合】和【集锦】的视图选择默认模板。

<figure><img src="/files/fpfkYhnkkOdBZzQFRJKK" alt=""><figcaption><p>为对象集合选择默认模板</p></figcaption></figure>

你可以在【类型库】中，对每种【对象类型】已添加的【模板】进行查看、编辑、复制或删除。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://doc.anytype.io/anytype-docs/documentation_cn/ji-chu/types/templates.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
