ramesh-dada/bbcode-alerts

为 Flarum 帖子添加视觉警报/警告

安装数: 1,351

依赖关系: 0

建议者: 0

安全: 0

星级: 0

关注者: 1

分支: 0

开放问题: 0

类型:flarum-extension

6.21 2021-07-09 12:55 UTC

This package is auto-updated.

Last update: 2024-09-09 20:44:29 UTC


README

GitHub license Latest Stable Version Total Downloads

向您的 Flarum 帖子添加警报、警告和其他自定义通知。

安装

composer require ramesh-dada/bbcode-alerts

更新

composer update ramesh-dada/bbcode-alerts

卸载

composer remove ramesh-dada/bbcode-alerts

用法

基本通知警报

[AWARNING]这是 AWARNING 消息。[\/AWARNING]

[ASUCCESS]这是 ASUCCESS 消息。[\/ASUCCESS]

[AINFO]这是 AINFO 消息。[\/AINFO]

[ABASIC]这是 ABASIC 消息。[\/ABASIC]

[ACUSTOM]red,black,green,这是 ACUSTOM 消息。[\/ACUSTOM]

更多样式通知

[BWARNING]这是 BWARNING 消息。[\/BWARNING]

[BSUCCESS]这是 BSUCCESS 消息。[\/BSUCCESS]

[BERROR]这是 BERROR 消息。[\/BERROR]

[CWARNING]darkorange,white,darkorange,这是 CWARNING 标题,这是 CWARNING 消息。[\/CWARNING]

[CNOTICE]teal,white,teal,这是 CNOTICE 标题,这是 CNOTICE 消息。[\/CNOTICE]

[CERROR]red,white,red,这是 CERROR 标题,这是 CERROR 消息。[\/CERROR]

[CSUCCESS]green,white,green,这是 CSUCCESS 标题,这是 CSUCCESS 消息。[\/CSUCCESS]

[BCUSTOM]title=这是 BCUSTOM 标题 font=red bg=black border=green[\/BCUSTOM]

[DNOTICE title="这是 DNOTICE 标题" font="teal" bg="white" border="teal"]这是 DNOTICE 消息。[\/DNOTICE]

[DERROR title="这是 DERROR 标题" font="red" bg="white" border="red"]这是 DERROR 消息。[\/DERROR]

[DWARNING title="这是 DWARNING 标题" font="darkorange" bg="white" border="darkorange"]这是 DWARNING 消息。[\/DWARNING]

[DSUCCESS title="这是 DSUCCESS 标题" font="green" bg="white" border="green"]这是 DSUCCESS 消息。[\/DSUCCESS]

截图

Imgur Imgur Imgur

正确格式化的 BBCode

Imgur

链接