跳至主要內容

Thunderstore 下載量

Thunderstore 徽章需要套件的 namespacename

所有資訊都可以從您套件的 URL 中判斷。Thunderstore 套件 URL 的格式大致相同

https://thunderstore.io/c/[社群]/p/[命名空間]/[套件名稱]]

例如:https://thunderstore.io/c/lethal-company/p/notnotnotswipez/MoreCompany/

  • namespace = "notnotnotswipez"
  • packageName = "MoreCompany"
Risk Of Rain 2

「預設社群」Risk of Rain 2 有替代的 URL

https://thunderstore.io/package/[命名空間]/[套件名稱]]
子網域社群

有些社群使用「子網域」替代 URL,例如 Valheim

https://valheim.thunderstore.io/package/[命名空間]/[套件名稱]]
路徑參數
namespace 字串 必填

範例:notnotnotswipez

packageName 字串 必填

範例:MoreCompany

查詢參數
style 字串

可能的值: [flat, flat-square, plastic, for-the-badge, social]

如果未指定,此徽章的預設樣式為「flat」。

範例:flat

logo 字串

來自 simple-icons 的圖示 slug。您可以在 simple-icons 上點擊圖示標題來複製 slug,或在 simple-icons 儲存庫的 slugs.md 檔案中找到。更多資訊

範例:appveyor

logoColor 字串

圖示的顏色(支援十六進位、rgb、rgba、hsl、hsla 和 CSS 命名顏色)。支援 simple-icons 圖示,但不支援自訂圖示。

範例:violet

logoSize 字串

設定 auto 使圖示能自適應調整大小。對於某些較寬的圖示(如 amdamg)很有用。支援 simple-icons 圖示,但不支援自訂圖示。

範例:auto

label 字串

覆寫預設的左側文字(空格或特殊字元需要 URL 編碼!)

範例:healthiness

labelColor 字串

左側部分的背景顏色(支援十六進位、rgb、rgba、hsl、hsla 和 CSS 命名顏色)。

範例:abcdef

color 字串

右側部分的背景顏色(支援十六進位、rgb、rgba、hsl、hsla 和 CSS 命名顏色)。

範例:fedcba

cacheSeconds 字串

HTTP 快取生命週期(會套用規則來推斷每個徽章的預設值,任何指定低於預設值的值都將被忽略)。

範例:3600

link 字串[]

指定點擊徽章左側/右側應執行的操作。請注意,這僅在將您的徽章整合到 <object> HTML 標籤中時有效,但在 <img> 標籤或標記語言中無效。