# 模板

Chamilo 使用模板来管理证书、文档和电子邮件。您可以自定义这些模板以符合您组织的品牌和需求。

## 证书模板

证书模板定义了颁发给达到成绩簿门槛的学习者的证书的布局和内容。

### 自定义证书模板

证书模板使用 HTML 和 CSS，并包含占位符变量：

| 变量   | 替换为                                     |
| ---- | --------------------------------------- |
| 学生姓名 | 学习者的全名                                  |
| 课程名称 | 课程的名称                                   |
| 日期   | 获得证书的日期                                 |
| 得分   | 学习者的最终得分                                |
| 条形码  | 用于验证的条形码占位符 (`((certificate_barcode))`) |

### 上传模板

1. 导航到证书模板管理
2. 上传或编辑 HTML 模板
3. 在需要显示动态内容的地方使用占位符变量
4. 保存

## 文档模板

教师在使用文档工具创建内容时可以使用文档模板。模板为常见文档类型提供了起始布局。

### 管理文档模板

1. 在管理面板中导航到模板管理
2. 通过上传 HTML 文件添加新模板
3. 模板将在教师创建新文档时变得可用

## 提示

* **包含您的标志** — 在证书模板中添加您组织的标志以获得专业外观
* **使用真实数据测试** — 在部署模板之前，使用实际学习者数据预览证书
* **保持模板简洁** — 简洁的设计打印效果更好且看起来更专业


---

# 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://docs.chamilo.org/2.x-zh-cn/guan-li-zhi-nan/admin-guide/branding/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.
