Skip to content

Badgen

快速徽章生成服务。

ref-reporef-online-toolref-official-doc

Tip

由于此项目支持的徽章种类非常多,且功能强大,这里只简单介绍-静态徽章,其他徽章使用方式还请移步官方文档。

参数

点击显示/关闭参数

名称类型必填默认值参数描述更多描述
ref-params
badgestringtrue徽章类型可选值:/static /github /gitlab /https 等等,更多类型请参考官方文档。
subjectstringtrue徽章子信息比如:/static 静态徽章时,subject 表示为徽章左侧标签。
statusstringtrue徽章右侧消息比如:/static/Swift/4.2/orange status=4.2
colorstringtrue徽章颜色支持格式:RGB CSS颜色
ref-querys
colorstring覆盖默认徽章颜色
iconstring徽章左侧图标支持外部图标 URL。
labelstring徽章左侧标签
labelColorstring徽章左侧标签颜色
scalenumber1徽章缩放比例
cachenumber86400缓存时间单位:秒。
txt
https://badgen.net/{badge}/{subject}/{status}/{color}{?color,icon,label,labelColor,scale,cache}

示例

markdown
<!-- badgen/badgen.net -->
![Swift Version](https://badgen.net/static/Swift/4.2/orange)
Swift Version
markdown
![彩色徽章](https://badgen.net/badge/color/F94144/F94144?label=)
Color Badge F94144Color Badge F3722CColor Badge F8961EColor Badge F9844AColor Badge F9C74FColor Badge 90BE6DColor Badge 43AA8BColor Badge 4D908EColor Badge 577590Color Badge 555555Color Badge 277DA1

Badge Collection (v3.0.4) MIT Licensed