評分佔比條模塊

WikiJump include 未展开: 跨站引用未启用(:scp-int:ratemod:sentimentbar-base)

Rating: +118

評分佔比條模塊:由JochoiJochoi 製作。

非常感謝Boyu12Boyu12 於Discord上的幫助!
非常感謝W AsrielW Asriel 關於將佔比條整合到評分模塊的提議!
另外也非常感謝於QQ群的各位關於顏色配搭的提議!

備註:佔比條模塊需手動重載入網頁以更新評分比率!

使用方法與選項解釋:

獨立佔比條:

在[[include…]]之內,你可以根據你自己的需要刪除或者添加選項。

[[include :scp-wiki-cn:ratemod:sentimentbar-arguments uper=0.55 | nper=0 | dper=0.45 | width=300px | theme=ytp-like]]

範例:

WikiJump include 未展开: 跨站引用未启用(:scp-int:ratemod:sentimentbar-base)

uper:選填。好評佔率,接受少於1的點數或分數(以1為整體)。預設為該頁面的好評數除以總投票數。

dper:選填。差評佔率,接受少於1的點數或分數(以1為整體)。預設為該頁面的差評數除以總投票數。

nper:選填。中立佔率,接受少於1的點數或分數(以1為整體)。預設為0。

width:選填。佔比條寬度。預設為150px。

theme:選填。佔比條顏色配搭主題。預設為"greengrayred"。預定義主題如下:

+ 打開列表- 關閉列表
主題使用名顯示效果 (+0.45/X0.1/-0.45)好評條 (+) 顏色中立條 (X) 顏色差評條 (–) 顏色
greengrayred

WikiJump include 未展开: 跨站引用未启用(:scp-int:ratemod:sentimentbar-base)

#3ae845#a0a0a0#e83a3a
ytp-like

WikiJump include 未展开: 跨站引用未启用(:scp-int:ratemod:sentimentbar-base)

#167ac6#ccc#ccc
purplegrayyellow

WikiJump include 未展开: 跨站引用未启用(:scp-int:ratemod:sentimentbar-base)

#8a5cbc#ccc#fcdc3f
pinkgrayblue

WikiJump include 未展开: 跨站引用未启用(:scp-int:ratemod:sentimentbar-base)

#ff86ec#ccc#369ae6
redgrayblack

WikiJump include 未展开: 跨站引用未启用(:scp-int:ratemod:sentimentbar-base)

#ff0000#ccc#000
bluegrayred

WikiJump include 未展开: 跨站引用未启用(:scp-int:ratemod:sentimentbar-base)

#369ae6#ccc#ee1111
prusti

WikiJump include 未展开: 跨站引用未启用(:scp-int:ratemod:sentimentbar-base)

#003153#ccc#dcdbd6

自定義主題可使用以下代碼定義:

+ 顯示代碼- 隱藏代碼
[[module css]]
.(自定義主題用名,需為英文) .neutralbar {
    background-color: #XXXXXX;
    /* 中立條顏色 */
    color: #XXXXXX;
    /* 中立條文字顏色 */
}
.(自定義主題用名,需為英文) .downbar-base {
    background-color: #XXXXXX;
    /* 差評條顏色 */
}
.(自定義主題用名,需為英文) .downbar-text {
    color: #XXXXXX;
    /* 差評條文字顏色 */
}
.(自定義主題用名,需為英文) .upbar {
    background-color: #XXXXXX;
    /* 好評條顏色 */
    color: #XXXXXX;
    /* 好評條文字顏色 */
}
[[/module]]

根據需要更改上述代碼細節並放在頁面任何一處,然後於[[include…]]裡把"theme"設為自定義主題用名以使用。

附佔比條的評分模塊:

在頁面的開首插入如下的代碼以代替評分模塊與[[>]]。在[[include…]]之內,你可以根據你自己的需要刪除或者添加選項。
游標懸浮於右面的評分模塊之上時會拉出佔比條,在移動端上表現為點擊評分模塊任何一處。

Sigma-9:

[[include :scp-wiki-cn:ratemod:sentimentbar theme=ytp-like]]

黑色標記筆:

[[include :scp-wiki-cn:ratemod:sentimentbar | start=bhl | end=--] | theme=ytp-like]]

範例:

WikiJump include 未展开: 跨站引用未启用(:scp-int:ratemod:sentimentbar-base)

Rating: +118

theme:與上述相同。

附佔比條的著作信息模塊:

著作信息模塊的使用方法相同,分別在於"[[include credit:start]]"改為"[[include ratemod:sentimentbar-credit:start]]"。獨立著作信息模塊不受評分佔比條模塊支援。

在頁面的開首插入如下的代碼以代替評分模塊與[[>]]。在[[include…]]之內,你可以根據你自己的需要刪除或者添加選項。
游標懸浮於右面的評分模塊之上時會拉出佔比條,在移動端上表現為點擊評分模塊任何一處。

Sigma-9:

[[include :scp-wiki-cn:ratemod:sentimentbar-credit:start theme=ytp-like]]
資料
[[include :scp-wiki-cn:credit:more]]
更多資料
[[include :scp-wiki-cn:credit:end]]

黑色標記筆:

[[include :scp-wiki-cn:ratemod:sentimentbar-credit:start start=bhl | end=--] | theme=ytp-like]]
資料
[[include :scp-wiki-cn:credit:more]]
更多資料
[[include :scp-wiki-cn:credit:end]]

theme:與上述相同。

页面版本:⁨0⁩, 最后编辑于: ⁨2019/4/6 10:08:20⁩ (⁨⁨2720⁩ 日前⁩), 现时评分: 118