跳至主要內容

Thunderstore 讚數

Thunderstore 徽章需要套件的 namespacename

所有資訊都可以從你的套件網址中辨識出來。Thunderstore 套件網址大多採用一致的格式

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》有一個替代網址

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

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

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

範例:notnotnotswipez

packageName 字串 必要

範例:MoreCompany

查詢參數
style 字串

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

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

範例: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> 標籤或標記語言。