> For the complete documentation index, see [llms.txt](https://momi.gtemc.cn/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://momi.gtemc.cn/customnameplates/cha-jian-wiki/customnameplates/chuang-jian-xin-nei-rong/ming-pai.md).

# 🏷️ 铭牌

## 基础

铭牌由三部分组成：左、中和右。左右两部分将分布在玩家名称的两侧，而中间部分将复制自身以适应玩家名称的长度。

## 添加新的铭牌配置

译者注：<mark style="color:red;">**不要使用notepad++**</mark>**请使用**[<mark style="color:green;">**vscode**</mark>](https://code.visualstudio.com/Download)**或**[<mark style="color:green;">**notepad--**</mark>](https://gitee.com/cxasm/notepad--/releases)**等其他没有**<mark style="color:red;">**政治因素**</mark>**的编辑器**

<div align="left"><img src="https://content.gitbook.com/content/s87C1OsSEHzpv1XHzgIN/blobs/1KhkRtAm5tVVvocZD3eR/image.png" alt="" width="339"></div>

铭牌配置包含 3 个图片和一个 YAML 配置文件。

```yaml
display-name: 悲伤的猫
command-suggestion: 悲伤的猫
min-width: 0 # 此选项决定铭牌的最小宽度
left:
  image: cat_left
  height: 16
  ascent: 12
middle:
  image: cat_middle
  height: 16
  ascent: 12
right:
  image: cat_right
  height: 16
  ascent: 12
```

**display-name** ：聊天框中名牌的显示名称

**height/ascent**：

> * height：字符的高度，以像素为单位。可以是负值。此标签与源纹理中使用的区域分开，并且只重新调整显示的结果。
> * ascent：字符的上升，以像素为单位。此值将向显示的结果添加垂直偏移。

**注意：在默认配置中，名牌的图片都是方形的，但实际上并不一定要正方形才能工作。**

<div align="left"><img src="https://content.gitbook.com/content/s87C1OsSEHzpv1XHzgIN/blobs/c7xBvWQWFDGUvRcHyAm4/image.png" alt="" width="333"> <img src="https://content.gitbook.com/content/s87C1OsSEHzpv1XHzgIN/blobs/6uBJFMBiyeppJnfAn21I/image.png" alt="" width="251"></div>
