Flarum BBCode 语法

一般基本的功能都可以用Markdown实现,但是还是有必要了解下BBCode。注意本论坛的一些语法与其他非Flarum论坛不兼容。

## 对齐

``` [center]居中文本[/center] ``` [center]

居中文本

[/center]

## 文本

``` [b]文本[/b] [i]文本[/i] [del]文本[/del] [color=颜色]文本[/color] <!-- 此处以red为例 --> [size=<数字(px)>]文本[/size] <!-- 此处以20为例 --> [quote=who]内容[/quote] <!-- 一般写Markdown即可 --> ```

[b]文本[/b]
[i]文本[/i]
[del]文本[/del]
[color=red]文本[/color] <!-- 此处以red为例 -->
[size=20]文本[/size] <!-- 此处以20为例 -->

[quote=who]

内容

[/quote]

<!-- 一般写Markdown即可 -->

## 警告框 (`BBCode Alerts`)

### 基本

``` [AWARNING]This is an AWARNING message.[/AWARNING]

[ASUCCESS]This is an ASUCCESS message.[/ASUCCESS]

[AINFO]This is an AINFO message.[/AINFO]

[ABASIC]This is an ABASIC message.[/ABASIC]

[ACUSTOM]red,black,green,This is an ACUSTOM message.[/ACUSTOM]
```

[AWARNING]This is an AWARNING message.[/AWARNING]

[ASUCCESS]This is an ASUCCESS message.[/ASUCCESS]

[AINFO]This is an AINFO message.[/AINFO]

[ABASIC]This is an ABASIC message.[/ABASIC]

[ACUSTOM]red,black,green,This is an ACUSTOM message.[/ACUSTOM]

## 更好的

``` [BWARNING]This is n BWARNING message.[/BWARNING]

[BSUCCESS]This is a BSUCCESS message.[/BSUCCESS]

[BERROR]This is a BERROR message.[/BERROR]

[CWARNING]darkorange,white,darkorange,THIS IS A CWARNING TITLE,This is a CWARNING message.[/CWARNING]

[CNOTICE]teal,white,teal,THIS IS A CNOTICE TITLE,This is a CNOTICE message.[/CNOTICE]

[CERROR]red,white,red,THIS IS A CERROR TITLE,This is a CERROR message.[/CERROR]

[CSUCCESS]green,white,green,THIS IS A CERROR TITLE,This is a CSUCCESS message.[/CSUCCESS]
```

[BWARNING]

This is n BWARNING message.

[/BWARNING]

[BSUCCESS]

This is a BSUCCESS message.

[/BSUCCESS]

[BERROR]

This is a BERROR message.

[/BERROR]

[CWARNING]darkorange,white,darkorange,THIS IS A CWARNING TITLE,This is a CWARNING message.[/CWARNING]

[CNOTICE]teal,white,teal,THIS IS A CNOTICE TITLE,This is a CNOTICE message.[/CNOTICE]

[CERROR]red,white,red,THIS IS A CERROR TITLE,This is a CERROR message.[/CERROR]

[CSUCCESS]green,white,green,THIS IS A CERROR TITLE,This is a CSUCCESS message.[/CSUCCESS]

## 增加的

``` [BCUSTOM]title=THIS IS A BCUSTOM TITLE font=red bg=black border=green[/BCUSTOM]

[DNOTICE title=“This is a DNOTICE title” font=“teal” bg=“white” border=“teal”]This is a DNOTICE message.[/DNOTICE]

[DERROR title=“This is a DERROR title” font=“red” bg=“white” border=“red”]This is a DERROR message.[/DERROR]

[DWARNING title=“This is a DWARNING title” font=“darkorange” bg=“white” border=“darkorange”]This is a DWARNING message.[/DWARNING]

[DSUCCESS title=“This is a DSUCCESS title” font=“green” bg=“white” border=“green”]This is a DSUCCESS message.[/DSUCCESS]
```

[BCUSTOM]title=THIS IS A BCUSTOM TITLE font=red bg=black border=green[/BCUSTOM]

[DNOTICE title=“This is a DNOTICE title” font=“teal” bg=“white” border=“teal”]

This is a DNOTICE message.

[/DNOTICE]

[DERROR title=“This is a DERROR title” font=“red” bg=“white” border=“red”]

This is a DERROR message.

[/DERROR]

[DWARNING title=“This is a DWARNING title” font=“darkorange” bg=“white” border=“darkorange”]

This is a DWARNING message.

[/DWARNING]

[DSUCCESS title=“This is a DSUCCESS title” font=“green” bg=“white” border=“green”]

This is a DSUCCESS message.

[/DSUCCESS]

## Font Awesome

``` Solid: [fas]circle[/fas] Regular: [far]circle[/far] Light: [fal]circle[/fal] Brand: [fab]github[/fab] ```

Solid: [fas]circle[/fas]
Regular: [far]circle[/far]
Light: [fal]circle[/fal]
Brand: [fab]github[/fab]
注意:仅支持 **FREE** 不支持 **Pro** 版本。

## 限制查看

``` [LOGIN]content to hide[/LOGIN]: 不登录用户不得查看 [LIKE]content to hide[/LIKE]: 只有点赞本贴才能查看 [REPLY]content to hide[/REPLY]: 必须回复帖子才能查看 ```

[LOGIN]content to hide[/LOGIN]: 不登录用户不得查看
[LIKE]content to hide[/LIKE]: 只有点赞本贴才能查看
[REPLY]content to hide[/REPLY]: 必须回复帖子才能查看
注:版主和管理可无视点赞或回复条件

## BBCode More New

右下角中BBCode More New图标(类似一个表格)可能观感不佳,不建议使用。

``` [login]此内容只有登录才能查看[/login] [reply]此内容只有回复才能查看[/reply] ```

[login]此内容只有登录才能查看[/login]
[reply]此内容只有回复才能查看[/reply]

### 网盘链接

``` [cloud type=google title=title url=link]password[/cloud] [cloud type=one title=title url=link]password[/cloud] [cloud type=f title=title url=link]password[/cloud] [cloud type=mega title=title url=link]password[/cloud] [cloud type=dropbox title=title url=link]password[/cloud] [cloud type=mediafire title=title url=link]password[/cloud]

[cloud type=lz title=title url=link]password[/cloud]
[cloud type=123 title=title url=link]password[/cloud]
[cloud type=ali title=title url=link]password[/cloud]
[cloud type=bd title=title url=link]password[/cloud]
[cloud type=ty title=title url=link]password[/cloud]
[cloud type=360 title=title url=link]password[/cloud]
[cloud type=ct title=title url=link]password[/cloud]
[cloud type=tx title=title url=link]password[/cloud]
[cloud type=kk title=title url=link]password[/cloud]
[cloud type=other title=title url=link]password[/cloud]
[cloud type=github title=title url=link]v1.0.0[/cloud]
[cloud type=gitee title=title url=link]v1.0.0[/cloud]
```

[cloud type=google title=title url=link]password[/cloud]
[cloud type=one title=title url=link]password[/cloud]
[cloud type=f title=title url=link]password[/cloud]
[cloud type=mega title=title url=link]password[/cloud]
[cloud type=dropbox title=title url=link]password[/cloud]
[cloud type=mediafire title=title url=link]password[/cloud]

[cloud type=lz title=title url=link]password[/cloud]
[cloud type=123 title=title url=link]password[/cloud]
[cloud type=ali title=title url=link]password[/cloud]
[cloud type=bd title=title url=link]password[/cloud]
[cloud type=ty title=title url=link]password[/cloud]
[cloud type=360 title=title url=link]password[/cloud]
[cloud type=ct title=title url=link]password[/cloud]
[cloud type=tx title=title url=link]password[/cloud]
[cloud type=kk title=title url=link]password[/cloud]
[cloud type=other title=title url=link]password[/cloud]
[cloud type=github title=title url=link]v1.0.0[/cloud]
[cloud type=gitee title=title url=link]v1.0.0[/cloud]


------

如果输入的名称不属于上面的要求,则:

[cloud type=其他 title=title url=link]内容[/cloud]
----

示例(链接到 GitHub 的 Note Wiki 项目)

``` [cloud type=github title=Note Wiki url=https://github.com/notewiki/notewiki.github.io]1.0.0[/cloud] ``` [cloud type=github title=Note Wiki url=https://github.com/notewiki/notewiki.github.io]1.0.0[/cloud]

**注意!**此功能链接无法使用。所以使用时最好带有链接。

## 标签

``` [tabs] [tab="CleanNote"]CleanNote是Note.ms的一个毁灭组织,其…………[/tab] [tab="ProtectNote"]ProtectNote是一个Note.ms的保护组织,旨在保护组织免受CleanNote毁灭。[/tab] [/tabs] ``` [tabs] [tab="CleanNote"]

CleanNote是Note.ms的一个毁灭组织,其…………

[/tab] [tab="ProtectNote"]

ProtectNote是一个Note.ms的保护组织,旨在保护组织免受CleanNote毁灭。

[/tab] [/tabs]

## 需要展开的信息

``` [details=TITLE]CONTENT[/details] ```
[details=TITLE]

CONTENT

[/details]

## 进度条

``` [PBAR]Total,70% Complete,black,red,pink,1,70,5,40[/PBAR] [PBAR]Front-end,30% Complete,black,blue,teal,1,30,10,80[/PBAR] [PBAR]Back-end,40% Complete,black,black,gray,1,40,20,0[/PBAR] ``` [PBAR]Total,70% Complete,black,red,pink,1,70,5,40[/PBAR] [PBAR]Front-end,30% Complete,black,blue,teal,1,30,10,80[/PBAR] [PBAR]Back-end,40% Complete,black,black,gray,1,40,20,0[/PBAR]

注:语法为

``` [PBAR]标题,进度条内显示的文字,边框颜色,进度条颜色,进度条与白色之间的颜色,边框大小,百分比%,圆角(border-radius),BottomMargin[/PBAR] ```

## 剧透内容

``` [spoiler] Some content [/spoiler] ```

[spoiler]
Some content
[/spoiler]

与detail标签用法相同

## 非BBCode

### 标签

语法:`#标签名的slug`
示例:#admin #discuss
代码:` #admin #discuss`
可以通过点击标签名查看地址栏后面的值得知slug。

### TodoList

使用 Markdown 语法。

``` - [ ] 未完成 - [x] 已完成 ```
  • - [ ] 未完成
  • - [x] 已完成
  • 很好的分享,让坛友能够更好的玩转论坛

    [已编辑]

    @“James”#p44604 非常感谢你的能量

    其实这些内容可以在扩展 .md 文件查看。

    >

    @“Googol”#p44600

    > Some content

    >

    Spoiler 这个没有实现了

    感谢分享,我去试试看

    搬运的

    救命啊!!!!!!!!!!!!!!!!!!!!!!!

    @“James”#p44611 這個是不是搬運的,好像論壇之前有類似的