模板:Quality score color
外觀
根據品質百分比生成#RRGGBB字串。如100%對應典範級主題色( #9cbdff)、50%對應丙級主題色( #ffff66)等;中間分值則按比例插值計算。
本模板可接受以下兩種寫法:
{{Quality score color|百分比}}{{Quality score color|分数|满分}}
若輸入值小於0,則按0%處理;若大於100%,則按100%處理。
參數
[編輯]|1=— 單獨使用時,表示百分比。與|2=同時使用時,表示分數。|2=— 滿分。僅在需要按「分數/滿分」換算百分比時填寫。
例子
[編輯]{{Quality score color|70}}→#b2ff66( 乙級主題色){{Quality score color|197|205}}→#87d7ff( 介於甲級色和典範級色之間)
說明
[編輯]本模板的顏色錨點參考自英維w:en:Template:Class/colour所用的品質評級主題色,並將其映射到連續的0%至100%區間中,以便為進度、質量指數等數值生成對應顏色。
參見
[編輯]| 標準等級類型 | |||
|---|---|---|---|
| |
|
|
|
| {{class|FA}} | {{class|FL}} | {{class|A}} | {{class|GA}} |
| |
|
|
|
| {{class|B}} | {{class|C}} | {{class|Start}} | {{class|Stub}} |
| |
|
|
|
| {{class|List}} | {{class|NA}} | {{class|Unassessed}} | |
| 非標準等級類型 | |||
| |
|
|
|
| {{class|AL}} | {{class|BL}} | {{class|CL}} | {{class|SL}} |
| |
|
|
分類 |
| {{class|Current}} | {{class|Future}} | {{class|Sia}} | {{class|Category}} |
| 消歧義 | 草稿 | 檔案 | 合併 |
| {{class|Disambig}} | {{class|Draft}} | {{class|File}} | {{class|Merge}} |
| 請求 | 主題 | 專題 | 重新導向 |
| {{class|Needed}} | {{class|Portal}} | {{class|Project}} | {{class|Redirect}} |
| 模板 | 模組 | 用戶 | |
| {{class|Template}} | {{class|Module}} | {{class|User}} | |
| 重要度類型 | |||
| 極高 | 高 | 中 | 低 |
| {{importance|Top}} | {{importance|High}} | {{importance|Mid}} | {{importance|Low}} |
| 極低 | 無 | 不適用 | 未知 |
| {{importance|Bottom}} | {{importance|No}} | {{importance|NA}} | {{importance|Unknown}} |
級別
- {{Grading scheme}}
- {{Assessment Class Summary}}
- {{Cat class}}
- {{Articles by Quality}}
- {{Class}}
- {{Class/colour}}
- {{Class/icon}}
- {{評級}}
重要度
- {{Importance scheme}}
- {{Assessment Importance Summary}}
- {{Cat importance}}
- {{Articles by Importance}}
- {{Importance}}
- {{Importance/colour}}
- {{Importance/icon}}
- {{Importance/icon2}}
複合
其他
- {{Progression rainbow/auto}}
- {{AbQ Pie}}
- {{AbC Pie}}
- {{Topic box colour}}
- {{Quality score color}}