description: "Set commonly used block references, label cards, buttons, and other information as short codes for quick referencing"
Keywords: "short code, short code"
date: 2025-01-29T21:08:50+08:00
lastmod: 2025-01-29T21:08:50+08:00
categories:
- Example
- Grammar
tags:
- ShortCode
- Grammar
url: "demo/shortcodes.html"
toc: true
---
Although the `Markdown` syntax is already very rich and can meet the vast majority of our writing needs, in order to better layout the content of the article in a more friendly way, a set of custom phrases has been designed for citation, which can be quickly referenced when used.
<!--more-->
## Block reference
When quoting some classic quotes, this phrase can be used. The grammar reference is as follows:
```markdown
{{</* quote */>}}
### block quote
Write down the words you want to express!
{{</* /quote */>}}
```
Actual effect:
{{<quote>}}
Hope is indifferent to existence, indifferent to nothingness, just like the road on earth.
In fact, there is no road on the ground, and with more people walking, it becomes a road.
**Lu Xun**
{{</quote>}}
## Information Block
Support 'default'` The presentation of five different effects, including info, success, warning, and danger, with the following syntax reference:
Based on [Player](https://github.com/DIYgod/APlayer) And [MatingJS](https://github.com/metowolf/MetingJS) The library implements a responsive music player embedded in the meeting, with automatically recognized music platform URLs, including:` Netease, Tencent, Kugou, Baidu, and Xiami platforms also support user-defined music sources. Other relevant parameter explanations are as follows:
|Parameter Name | Default | Description|
| :----: | :------: | :--- |
| **id** | _Required_ | Music ID, which is the unique identifier of the music on the music platform |
| **server** | _Required_ | Music platform, supports `netease`、 `tencent`、 `kugou`、 `baidu` and `xiami` |
| **type** | _Required_ | Play type, currently supports `song` 、 `playlist`、 `album`、 `search` and `artist` |
| **auto** | _Optional_ | Music address, only supports the platform in the server parameter |
| **theme** | `#448aff` | The theme color of the player defaults to `#448aff` |
| **url** | Empty |Custom music source URL, default to empty |
| **name** | Empty | Music name, default to empty |
| **artist** | Empty | Music author, default to empty |
| **cover** | Empty | Music cover URL, default to empty |